From: akl Date: Fri, 6 Mar 2009 14:08:21 +0000 (+0000) Subject: Fix of 'b' problem described in 0019932 issue (see comment 0004258): alone scalar... X-Git-Tag: V5_1_1rc2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=efdb37de6af34d6a6242f474aaef04cbe96e9e72;p=modules%2Fvisu.git Fix of 'b' problem described in 0019932 issue (see comment 0004258): alone scalar bar without presentation is appeared at changing selection after hiding of the presentation. --- diff --git a/src/VISUGUI/VisuGUI_Sweep.cxx b/src/VISUGUI/VisuGUI_Sweep.cxx index 309e0c09..b8870ce6 100644 --- a/src/VISUGUI/VisuGUI_Sweep.cxx +++ b/src/VISUGUI/VisuGUI_Sweep.cxx @@ -345,13 +345,13 @@ void VisuGUI_Sweep::onSelectionChanged() VISU::ColoredPrs3d_i* aColoredPrs3d = dynamic_cast< VISU::ColoredPrs3d_i* >( aPrs3d ); anIsValidSelection &= ( aColoredPrs3d && aColoredPrs3d->IsTimeStampFixed() ); + myColoredPrs3d = aColoredPrs3d; + if ( myColoredPrs3d ) { myColoredPrs3d->SetMapScale( 1.0 ); myColoredPrs3d->UpdateActors(); } - myColoredPrs3d = aColoredPrs3d; - anIsValidSelection &= ( anActor && anActor->GetVisibility() ); myActor = anActor;