]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed "Sub-Shapes" and "Remove Sub-Shapes" on pre-selection.
authordbv <dbv@opencascade.com>
Tue, 31 May 2016 09:54:27 +0000 (12:54 +0300)
committerdbv <dbv@opencascade.com>
Tue, 31 May 2016 09:54:49 +0000 (12:54 +0300)
src/ModuleBase/ModuleBase_OperationFeature.cpp

index e2f2dd6803947e7b8443b81c8c16a11cef5411e6..8194f09bb6d12db9ff14a9f85b9553e970b3f6ee 100755 (executable)
@@ -371,7 +371,7 @@ ModuleBase_ModelWidget* ModuleBase_OperationFeature::activateByPreselection(
           if (!aWgt->canAcceptFocus())
             continue;
           aPropertyPanel->setPreselectionWidget(aWgt);
-          if (!aWgt->setSelection(myPreSelection, true)) {
+          if (myPreSelection.empty() || !aWgt->setSelection(myPreSelection, true)) {
             isSet = false;
             break;
           } else {