From 7d7e9e91e416fd4fb6adad88d6e932fbbd00e768 Mon Sep 17 00:00:00 2001 From: ptv Date: Wed, 13 Dec 2006 08:49:40 +0000 Subject: [PATCH] debug selection --- src/GLViewer/GLViewer_Context.cxx | 2 +- src/LightApp/LightApp_GLSelector.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); } } -- 2.39.2