From: dmv Date: Thu, 9 Apr 2009 12:45:32 +0000 (+0000) Subject: IPAL20982 Regression. Functionality “Unshrink” works incorrectly X-Git-Tag: V5_1_main_20090514~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61c02223d1e1d47bc167439cefb31dd1833e688b;p=modules%2Fvisu.git IPAL20982 Regression. Functionality “Unshrink” works incorrectly --- diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 768b7a5d..ae7155c1 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -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(aPrs3d)) { - aMesh->SetShrink(true); + aMesh->SetShrink(toShrink); } } else if (aTable) { if (anActorBase->IsShrunk())