]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of bug IPAL21162 - TC5.1.2: Scalar bar is visible while its owner is invisible
authorouv <ouv@opencascade.com>
Fri, 5 Jun 2009 15:33:47 +0000 (15:33 +0000)
committerouv <ouv@opencascade.com>
Fri, 5 Jun 2009 15:33:47 +0000 (15:33 +0000)
src/OBJECT/VISU_ScalarMapAct.cxx

index e68b837576224b43f4e38347de10603098e52131..013ab3d42cf3705e14422c922655914a948416db 100644 (file)
@@ -526,7 +526,7 @@ VISU_ScalarMapAct
 {
   myBarVisibility = theMode;
   if(myScalarBar) 
-    myScalarBar->SetVisibility(myBarVisibility);
+    myScalarBar->SetVisibility(myBarVisibility && GetVisibility());
 }