From: ouv Date: Fri, 5 Jun 2009 15:33:47 +0000 (+0000) Subject: Fix of bug IPAL21162 - TC5.1.2: Scalar bar is visible while its owner is invisible X-Git-Tag: V5_1_2rc2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eecd4ceb29c75b306032dc36bb6a02a27be85b36;p=modules%2Fvisu.git Fix of bug IPAL21162 - TC5.1.2: Scalar bar is visible while its owner is invisible --- diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index e68b8375..013ab3d4 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -526,7 +526,7 @@ VISU_ScalarMapAct { myBarVisibility = theMode; if(myScalarBar) - myScalarBar->SetVisibility(myBarVisibility); + myScalarBar->SetVisibility(myBarVisibility && GetVisibility()); }