From: ptv Date: Wed, 13 Dec 2006 08:49:40 +0000 (+0000) Subject: debug selection X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d7e9e91e416fd4fb6adad88d6e932fbbd00e768;p=modules%2Fgui.git debug selection --- diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index a0f6267c5..048f929de 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -643,7 +643,7 @@ void GLViewer_Context::eraseObject( GLViewer_Object* theObject, bool theUpdateVi return; theObject->unhighlight(); - theObject->unselect(); + remSelected( theObject, false ); theObject->setVisible( false ); if( theUpdateViewer ) diff --git a/src/LightApp/LightApp_GLSelector.cxx b/src/LightApp/LightApp_GLSelector.cxx index 44f458ad4..c2a4b51fa 100644 --- a/src/LightApp/LightApp_GLSelector.cxx +++ b/src/LightApp/LightApp_GLSelector.cxx @@ -106,7 +106,7 @@ void LightApp_GLSelector::setSelection( const SUIT_DataOwnerPtrList& aList ) changed = changed || sel != (bool)obj->isSelected(); if ( sel && !obj->isSelected() ) cont->setSelected( obj, false ); - else if ( !sel && obj->isSelected() ) + if ( !sel && obj->isSelected() ) cont->remSelected( obj, false ); } }