From: apo Date: Wed, 1 Aug 2007 09:39:13 +0000 (+0000) Subject: Fix a regression for ScalaBar X-Git-Tag: mergeto_BR_Dev_For_4_0_30Aug07~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=93f6a3b031beef949fd82f0601b42d724f856466;p=modules%2Fvisu.git Fix a regression for ScalaBar --- diff --git a/src/PIPELINE/VISU_ColoredPL.cxx b/src/PIPELINE/VISU_ColoredPL.cxx index 13c1de4b..49600e84 100644 --- a/src/PIPELINE/VISU_ColoredPL.cxx +++ b/src/PIPELINE/VISU_ColoredPL.cxx @@ -254,11 +254,11 @@ VISU_ColoredPL if(myBarTable->GetScale() == VTK_SCALE_LOG10) VISU_LookupTable::ComputeLogRange(aRange, aScalarRange); - if(!VISU::CheckIsSameRange(myMapperTable->GetRange(), aScalarRange)){ + if(!VISU::CheckIsSameRange(myMapperTable->GetRange(), aScalarRange)) myMapperTable->SetRange(aScalarRange); - myMapperTable->Build(); - myBarTable->Build(); - } + + myMapperTable->Build(); + myBarTable->Build(); Superclass::Update(); }