]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed Bug GVIEW10286 : Fatal Error after pressing of ?s? button on the keyboard
authorouv <ouv@opencascade.com>
Fri, 14 Oct 2005 14:19:43 +0000 (14:19 +0000)
committerouv <ouv@opencascade.com>
Fri, 14 Oct 2005 14:19:43 +0000 (14:19 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx

index b31a102d1cfd07da645fe9a7f06d784fc50b36fd..5646fd4cdadf73dc2b1402ab2c16cf8131c16e44 100644 (file)
@@ -623,11 +623,11 @@ void
 VISU_GaussPtsAct::highlight(bool theHighlight,
                            Selection_Mode theSelectionMode)
 {
-  myTextActor->SetVisibility(theHighlight);
-  myCursorPyramidSelected->SetVisibility(theHighlight);
-  myCursorPyramid->SetVisibility(theHighlight);
-  myCellActor->SetVisibility(theHighlight);
-  GetScalarBarCtrl()->SetIsMarked(theHighlight);
+  myTextActor->SetVisibility(0);
+  myCursorPyramidSelected->SetVisibility(0);
+  myCursorPyramid->SetVisibility(0);
+  myCellActor->SetVisibility(0);
+  GetScalarBarCtrl()->SetIsMarked(false);
   GetScalarBarCtrl()->Update();
 }
 //==================================================================
@@ -637,8 +637,6 @@ VISU_GaussPtsAct::highlight(bool theHighlight,
 void VISU_GaussPtsAct::highlight(bool theHighlight,
                                 SVTK_Selector* theSelector)
 {
-  highlight( mySelectionMode != ActorSelection, mySelectionMode );
-
   TColStd_IndexedMapOfInteger aMapIndex;
   //
   theSelector->GetIndex( getIO(), aMapIndex );
@@ -679,7 +677,7 @@ void VISU_GaussPtsAct::highlight(bool theHighlight,
                                    aRadius,
                                    aNodeCoord,
                                    myHighlightProperty.GetPointer()->GetColor());
-      //myCursorPyramidSelected->SetVisibility(1);
+      myCursorPyramidSelected->SetVisibility(1);
       //
       const VISU::PGaussPtsIDMapper& aGaussPtsIDMapper = 
        myGaussPointsPL->GetGaussPtsIDMapper();