From d669f7ab48072fb608a678bed9d44f39bc8f9c63 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 7 Oct 2009 09:51:54 +0000 Subject: [PATCH] 0020428: EDF 906 GEOM : Performance for Group creation in GEOM Additional fix for the "Main Shape Selection restriction" case --- src/GroupGUI/GroupGUI_GroupDlg.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 7fc1099f6..f1d034be5 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -610,15 +610,13 @@ void GroupGUI_GroupDlg::ConstructorsClicked( int constructorId ) //================================================================================= void GroupGUI_GroupDlg::selectAllSubShapes() { - if ( CORBA::is_nil( myMainObj ) ) + if ( CORBA::is_nil( myMainObj ) || !myIsShapeType ) return; GEOM::ListOfLong_var aSubShapes; // if ( !myPlaceCheckBox->isChecked() ) if ( subSelectionWay() == ALL_SUBSHAPES ) { - if ( !myIsShapeType ) - return; myIdList->clear(); GEOM::GEOM_IShapesOperations_var aShOp = getGeomEngine()->GetIShapesOperations( getStudyId() ); aSubShapes = aShOp->SubShapeAllIDs(myMainObj, getShapeType(), false); -- 2.39.2