From 61c02223d1e1d47bc167439cefb31dd1833e688b Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 9 Apr 2009 12:45:32 +0000 Subject: [PATCH] =?utf8?q?IPAL20982=20Regression.=20Functionality=20=C3=A2?= =?utf8?q?=C2=80=C2=9CUnshrink=C3=A2=C2=80=C2=9D=20works=20incorrectly?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/VISUGUI/VisuGUI_Tools.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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()) -- 2.39.2