]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL21481 - Empty information window
authorouv <ouv@opencascade.com>
Wed, 18 Nov 2009 11:42:52 +0000 (11:42 +0000)
committerouv <ouv@opencascade.com>
Wed, 18 Nov 2009 11:42:52 +0000 (11:42 +0000)
src/OBJECT/VISU_Actor.cxx

index 959fce3d2dc9b2f7ded50b08fa145a18253d9f5a..20a5a8427e62168feacb26bde3c651d4808f1992 100644 (file)
@@ -771,12 +771,11 @@ VISU_Actor
   {
     if( mySelectionMode == ActorSelection )
       ResetTextActor();
-    else
-      aShowTextActor = false;
     myLastSelectionMode = mySelectionMode;
   }
 
-  myTextActor->SetVisibility( GetVisibility() && theIsHighlight && aShowTextActor );
+  myTextActor->SetVisibility( GetVisibility() && theIsHighlight && aShowTextActor &&
+                              ( mySelectionMode == ActorSelection || isSubElementsHighlighted() ) );
 
   bool anInitialHasIndex = isHighlighted();
   bool aCurrentHasIndex = theIsHighlight;