Fix for remark on PAL11017( Selected in object browser sub-shape is not highlighted in OCC 3D viewer ).

This commit is contained in:
mzn 2006-02-10 13:35:30 +00:00
parent 0c9aa567ca
commit 96892bc512

View 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) {