From aa1986d6732437e9f55291e5cbe309aea9c7d3b8 Mon Sep 17 00:00:00 2001 From: creatis Date: Wed, 9 Apr 2014 01:50:07 +0200 Subject: [PATCH] Amends the bug #2356 fixing by fixing it. --- .../widgets/ThresholdImageView/ColorLayerImageView.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.45.1