0020428: EDF 906 GEOM : Performance for Group creation in GEOM

Additional fix for the "Main Shape Selection restriction" case
This commit is contained in:
vsr 2009-10-07 09:51:54 +00:00
parent 0176bc0702
commit d669f7ab48

View File

@ -610,15 +610,13 @@ void GroupGUI_GroupDlg::ConstructorsClicked( int constructorId )
//================================================================================= //=================================================================================
void GroupGUI_GroupDlg::selectAllSubShapes() void GroupGUI_GroupDlg::selectAllSubShapes()
{ {
if ( CORBA::is_nil( myMainObj ) ) if ( CORBA::is_nil( myMainObj ) || !myIsShapeType )
return; return;
GEOM::ListOfLong_var aSubShapes; GEOM::ListOfLong_var aSubShapes;
// if ( !myPlaceCheckBox->isChecked() ) // if ( !myPlaceCheckBox->isChecked() )
if ( subSelectionWay() == ALL_SUBSHAPES ) if ( subSelectionWay() == ALL_SUBSHAPES )
{ {
if ( !myIsShapeType )
return;
myIdList->clear(); myIdList->clear();
GEOM::GEOM_IShapesOperations_var aShOp = getGeomEngine()->GetIShapesOperations( getStudyId() ); GEOM::GEOM_IShapesOperations_var aShOp = getGeomEngine()->GetIShapesOperations( getStudyId() );
aSubShapes = aShOp->SubShapeAllIDs(myMainObj, getShapeType(), false); aSubShapes = aShOp->SubShapeAllIDs(myMainObj, getShapeType(), false);