]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To port on SALOME CVS HEAD
authorapo <apo@opencascade.com>
Tue, 20 Sep 2005 16:33:43 +0000 (16:33 +0000)
committerapo <apo@opencascade.com>
Tue, 20 Sep 2005 16:33:43 +0000 (16:33 +0000)
src/SVTK/SALOME_Actor.cxx

index dc282cbc551c7af257482c0fdbab24b0b7ef2b2b..d06d6e9c8ee8f9727b862a5fc1fb24cf07919b06 100644 (file)
@@ -72,8 +72,8 @@ using namespace std;
   #endif
 #endif
 
-int SALOME_POINT_SIZE = 3;
-int SALOME_LINE_WIDTH = 2;
+int SALOME_POINT_SIZE = 5;
+int SALOME_LINE_WIDTH = 3;
 
 //----------------------------------------------------------------------------
 namespace
@@ -704,7 +704,7 @@ SALOME_Actor
 ::highlight(bool theHighlight, 
            Selection_Mode theSelectionMode)
 {
-  if(hasHighlight())
+  if(hasHighlight() && theSelectionMode == ActorSelection)
     highlight(theHighlight);
   else{
     myIsHighlighted = theHighlight; 
@@ -728,8 +728,8 @@ SALOME_Actor
   Superclass::SetVisibility( theVisibility );
 
   myOutlineActor->SetVisibility( theVisibility && isHighlighted() && !hasHighlight() );
-  myHighlightActor->SetVisibility( theVisibility && isHighlighted() && !hasHighlight() );
-  myPreHighlightActor->SetVisibility( theVisibility && myIsPreselected && !hasHighlight() );
+  myHighlightActor->SetVisibility( theVisibility && isHighlighted() );
+  myPreHighlightActor->SetVisibility( theVisibility && myIsPreselected );
 }