]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0022310: EDF 2512 GEOM: Get tool groups trace with RestorGivenSubShapes
authorjfa <jfa@opencascade.com>
Wed, 4 Sep 2013 14:12:19 +0000 (14:12 +0000)
committerjfa <jfa@opencascade.com>
Wed, 4 Sep 2013 14:12:19 +0000 (14:12 +0000)
src/OperationGUI/OperationGUI_PartitionDlg.cxx

index 6907e1d52466409b7cd78de888839cf2d48b8ec9..b51d7b488ffc2eff65a0b60c6a9e4e75fccee872 100644 (file)
@@ -498,7 +498,7 @@ void OperationGUI_PartitionDlg::restoreSubShapes( SALOMEDS::Study_ptr   theStudy
     // empty list of arguments means that all arguments should be restored
     getGeomEngine()->RestoreSubShapesSO( theStudy, theSObject, GEOM::ListOfGO(),
                                          /*theFindMethod=*/GEOM::FSM_GetInPlaceByHistory,
-                                         /*theInheritFirstArg=*/myListShapes.length() == 1,
+                                         /*theInheritFirstArg=*/myListShapes.length() == 1 && myListTools.length() == 0,
                                          mainFrame()->CheckBoxAddPrefix->isChecked() ); // ? false
   }
 }