From 4a4457c2aab81e60bad7e986ab58522b137db7e2 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 31 May 2016 12:54:27 +0300 Subject: [PATCH] Fixed "Sub-Shapes" and "Remove Sub-Shapes" on pre-selection. --- src/ModuleBase/ModuleBase_OperationFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2