comparison data/fileio/CSVFileReader.cpp @ 961:fae5689f7e27

Frame this condition more defensively (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 09:57:30 +0100
parents 59e7fe1b1003
children dc1695b90a58
comparison
equal deleted inserted replaced
960:5173e56e17f7 961:fae5689f7e27
428 } else { 428 } else {
429 model2b->setScaleUnits("Hz"); 429 model2b->setScaleUnits("Hz");
430 } 430 }
431 } 431 }
432 432
433 if (modelType == CSVFormat::ThreeDimensionalModel) { 433 if (model3) {
434 model3->setMinimumLevel(min); 434 model3->setMinimumLevel(min);
435 model3->setMaximumLevel(max); 435 model3->setMaximumLevel(max);
436 } 436 }
437 437
438 return model; 438 return model;