From: vsr Date: Wed, 7 Oct 2009 09:51:54 +0000 (+0000) Subject: 0020428: EDF 906 GEOM : Performance for Group creation in GEOM X-Git-Tag: V5_1_3rc1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d669f7ab48072fb608a678bed9d44f39bc8f9c63;p=modules%2Fgeom.git 0020428: EDF 906 GEOM : Performance for Group creation in GEOM Additional fix for the "Main Shape Selection restriction" case --- 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);