From: dmv Date: Mon, 19 May 2008 06:49:58 +0000 (+0000) Subject: NPAL 19674 a new bug like NPAL18352 X-Git-Tag: V4_1_3rc1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61c3b696a24bc3a1adf2809978e5e243ec73ab7a;p=modules%2Fgeom.git NPAL 19674 a new bug like NPAL18352 --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 5a5789ab8..b2351ada9 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -1237,6 +1238,7 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) it.data()->activate( application()->desktop() ); LightApp_SelectionMgr* sm = getApp()->selectionMgr(); + SUIT_ViewManager* vm; ViewManagerList OCCViewManagers, VTKViewManagers; application()->viewManagers( OCCViewer_Viewer::Type(), OCCViewManagers ); @@ -1246,6 +1248,11 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) for ( vm = VTKViewManagers.first(); vm; vm = VTKViewManagers.next() ) myVTKSelectors.append( new LightApp_VTKSelector( dynamic_cast( vm->getViewModel() ), sm ) ); + //NPAL 19674 + SALOME_ListIO selected; + sm->selectedObjects( selected ); + sm->clearSelected(); + // disable OCC selectors getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() ); for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() ) @@ -1256,6 +1263,8 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) for ( LightApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() ) sr->setEnabled(true); + sm->setSelectedObjects( selected, true ); //NPAL 19674 + return true; }