]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
debug selection
authorptv <ptv@opencascade.com>
Wed, 13 Dec 2006 08:49:40 +0000 (08:49 +0000)
committerptv <ptv@opencascade.com>
Wed, 13 Dec 2006 08:49:40 +0000 (08:49 +0000)
src/GLViewer/GLViewer_Context.cxx
src/LightApp/LightApp_GLSelector.cxx

index a0f6267c50fd7ee2e9a5f05ed6d46720a10ae467..048f929deed4719d91b79d3c13caca779870752b 100644 (file)
@@ -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 )
index 44f458ad442aa83d5d8573fcd1f6aeea2afef9fc..c2a4b51faa1b73f72e654adb11f025f48319ee6f 100644 (file)
@@ -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 );
       }
     }