]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of 'b' problem described in 0019932 issue (see comment 0004258): alone scalar...
authorakl <akl@opencascade.com>
Fri, 6 Mar 2009 14:08:21 +0000 (14:08 +0000)
committerakl <akl@opencascade.com>
Fri, 6 Mar 2009 14:08:21 +0000 (14:08 +0000)
src/VISUGUI/VisuGUI_Sweep.cxx

index 309e0c09b7cecd43aea74fc8fb43e0ab1b0892ab..b8870ce6cf176a751ee8f7e385a7c3512f71034f 100644 (file)
@@ -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;