]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for remark on PAL11017( Selected in object browser sub-shape is not highlighted...
authormzn <mzn@opencascade.com>
Fri, 10 Feb 2006 13:35:30 +0000 (13:35 +0000)
committermzn <mzn@opencascade.com>
Fri, 10 Feb 2006 13:35:30 +0000 (13:35 +0000)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index ba28f3724a7d01cacd50f0e8b5e15efacfbf30e4..7dfa08243d2a5149026ac9f69054c7731f485dd6 100644 (file)
@@ -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) {