From 96892bc512b55814eaf666e666422ea3d8586fe8 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 10 Feb 2006 13:35:30 +0000 Subject: [PATCH] Fix for remark on PAL11017( Selected in object browser sub-shape is not highlighted in OCC 3D viewer ). --- src/GroupGUI/GroupGUI_GroupDlg.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.2