changeset 961:fae5689f7e27

Frame this condition more defensively (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 09:57:30 +0100
parents 5173e56e17f7
children 613ee830de5e
files data/fileio/CSVFileReader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);
     }