]> Creatis software - creaMaracasVisu.git/commitdiff
Amends the bug #2356 fixing by fixing it.
authorcreatis <creatis@localhost.localdomain>
Tue, 8 Apr 2014 23:50:07 +0000 (01:50 +0200)
committercreatis <creatis@localhost.localdomain>
Tue, 8 Apr 2014 23:50:07 +0000 (01:50 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx

index 7404dc1f145bbe0dd66d66b38a73a7c99f2ec668..a512a272e1a30804c1a5ebd9c169e706628f1f87 100644 (file)
@@ -295,9 +295,9 @@ printf("ERROR: EED ColorLayerImageView::ConfigLookupTable   ------_range--------
 
   // CM Number of table values consistent with the effective number of values (see loop below).
   double thresholdTable_range[2];
-  thresholdTable_range[0]= std::max( GetGreyLevelBoundaries( GetBaseColorNb() ), ceil(_range[1]) );
-  thresholdTable_range[1]= std::min( GetGreyLevelBoundaries(0), floor(_range[0]) );
-  thresholdTable->SetNumberOfTableValues(thresholdTable_range[0] - thresholdTable_range[1] + 1);
+  thresholdTable_range[1]= std::max( GetGreyLevelBoundaries( GetBaseColorNb() ), ceil(_range[1]) );
+  thresholdTable_range[0]= std::min( GetGreyLevelBoundaries(0), floor(_range[0]) );
+  thresholdTable->SetNumberOfTableValues(thresholdTable_range[1] - thresholdTable_range[0] + 1);
   thresholdTable->SetTableRange(thresholdTable_range); 
   thresholdTable->SetAlphaRange(0, 1);
   thresholdTable->SetValueRange(0, 1);