From: ouv Date: Wed, 18 Mar 2009 16:27:29 +0000 (+0000) Subject: Minor change X-Git-Tag: CTH_15~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=825cc5e45152c4171578e400a01af57db648c651;p=modules%2Fgui.git Minor change --- diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index 984e53726..569f70ad8 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -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(); }