From: creatis Date: Tue, 8 Apr 2014 23:50:07 +0000 (+0200) Subject: Amends the bug #2356 fixing by fixing it. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=aa1986d6732437e9f55291e5cbe309aea9c7d3b8;p=creaMaracasVisu.git Amends the bug #2356 fixing by fixing it. --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx index 7404dc1..a512a27 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx @@ -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);