From: mzn Date: Fri, 10 Feb 2006 13:35:30 +0000 (+0000) Subject: Fix for remark on PAL11017( Selected in object browser sub-shape is not highlighted... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96892bc512b55814eaf666e666422ea3d8586fe8;p=modules%2Fgeom.git Fix for remark on PAL11017( Selected in object browser sub-shape is not highlighted in OCC 3D viewer ). --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index ba28f3724..7dfa08243 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -323,6 +323,8 @@ void GroupGUI_GroupDlg::SelectionIntoArgument() // try to find out and process the object browser selection if ( !aMapIndex.Extent() ) { + globalSelection( GEOM_ALLSHAPES ); + GEOM::ListOfGO anObjects; GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), anObjects); GEOM::GEOM_ILocalOperations_var aLocOp = getGeomEngine()->GetILocalOperations( getStudyId() ); @@ -334,6 +336,9 @@ void GroupGUI_GroupDlg::SelectionIntoArgument() aMapIndex.Add( anIndex ); } } + + if ( !myMainObj->_is_nil() ) + localSelection( myMainObj, getShapeType() ); } if (aMapIndex.Extent() >= 1) {