]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix a regression for ScalaBar
authorapo <apo@opencascade.com>
Wed, 1 Aug 2007 09:39:13 +0000 (09:39 +0000)
committerapo <apo@opencascade.com>
Wed, 1 Aug 2007 09:39:13 +0000 (09:39 +0000)
src/PIPELINE/VISU_ColoredPL.cxx

index 13c1de4b37231b9e5b28bd2336c199f6f2bfa677..49600e845e7c9a7d0b2bf8a039fe72602e98fa18 100644 (file)
@@ -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();
 }