]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor change
authorouv <ouv@opencascade.com>
Wed, 18 Mar 2009 16:27:29 +0000 (16:27 +0000)
committerouv <ouv@opencascade.com>
Wed, 18 Mar 2009 16:27:29 +0000 (16:27 +0000)
src/GLViewer/GLViewer_Context.cxx

index 984e537261e749a1352dbdbad9f6ace98d46532a..569f70ad80119a2ff5a99e5d50eb2b4260bccf40 100644 (file)
@@ -686,6 +686,10 @@ void GLViewer_Context::deleteObject( GLViewer_Object* theObject, bool updateView
     if( myLastPicked == theObject )
         myLastPicked = 0;
 
+    theObject->unhighlight();
+    theObject->unselect();
+    theObject->setVisible( false );
+
     if ( updateViewer )
       myGLViewer2d->updateAll();
 }