]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL20982 Regression. Functionality â\80\9cUnshrinkâ\80\9d works incorrectly
authordmv <dmv@opencascade.com>
Thu, 9 Apr 2009 12:45:32 +0000 (12:45 +0000)
committerdmv <dmv@opencascade.com>
Thu, 9 Apr 2009 12:45:32 +0000 (12:45 +0000)
src/VISUGUI/VisuGUI_Tools.cxx

index 768b7a5d466f8d0a429a6114132693d40d2edf6b..ae7155c13554791fad63ec42b29c1af47854eb10 100644 (file)
@@ -595,12 +595,17 @@ namespace VISU
     switch (theType) {
     case VISU::SHRINK:
       if (aPrs3d) {
-       if (anActor->IsShrunk())
+       bool toShrink;
+       if (anActor->IsShrunk()) {
          anActor->UnShrink();
-       else
+         toShrink = false;
+       }
+       else {
          anActor->SetShrink();
+         toShrink = true;
+       }
        if (VISU::Mesh_i* aMesh = dynamic_cast<VISU::Mesh_i*>(aPrs3d)) {
-         aMesh->SetShrink(true);
+         aMesh->SetShrink(toShrink);
        }
       } else if (aTable) {
        if (anActorBase->IsShrunk())