diff 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
line wrap: on
line diff
--- a/data/fileio/CSVFileReader.cpp	Wed Sep 03 09:56:18 2014 +0100
+++ b/data/fileio/CSVFileReader.cpp	Wed Sep 03 09:57:30 2014 +0100
@@ -430,7 +430,7 @@
         }
     }
 
-    if (modelType == CSVFormat::ThreeDimensionalModel) {
+    if (model3) {
 	model3->setMinimumLevel(min);
 	model3->setMaximumLevel(max);
     }