From: dbv Date: Tue, 31 May 2016 09:54:27 +0000 (+0300) Subject: Fixed "Sub-Shapes" and "Remove Sub-Shapes" on pre-selection. X-Git-Tag: V_2.3.1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a4457c2aab81e60bad7e986ab58522b137db7e2;p=modules%2Fshaper.git Fixed "Sub-Shapes" and "Remove Sub-Shapes" on pre-selection. --- diff --git a/src/ModuleBase/ModuleBase_OperationFeature.cpp b/src/ModuleBase/ModuleBase_OperationFeature.cpp index e2f2dd680..8194f09bb 100755 --- a/src/ModuleBase/ModuleBase_OperationFeature.cpp +++ b/src/ModuleBase/ModuleBase_OperationFeature.cpp @@ -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 {