]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020428: EDF 906 GEOM : Performance for Group creation in GEOM
authorvsr <vsr@opencascade.com>
Wed, 7 Oct 2009 09:51:54 +0000 (09:51 +0000)
committervsr <vsr@opencascade.com>
Wed, 7 Oct 2009 09:51:54 +0000 (09:51 +0000)
Additional fix for the "Main Shape Selection restriction" case

src/GroupGUI/GroupGUI_GroupDlg.cxx

index 7fc1099f6757253c5bfddd31fecb1df7ccc813c3..f1d034be5aa39cc0219f95b86725a455a86ef4ca 100644 (file)
@@ -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);