]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for selector(greed) widgets. Using preselection.
authornds <nds@opencascade.com>
Mon, 6 Jun 2016 06:27:41 +0000 (09:27 +0300)
committernds <nds@opencascade.com>
Mon, 6 Jun 2016 06:27:41 +0000 (09:27 +0300)
src/ModuleBase/ModuleBase_OperationFeature.cpp

index 79d72de89761f36cc450988892111de81e249fbf..82cf7906b46389333501c75b28d77f7769f83750 100755 (executable)
@@ -383,10 +383,14 @@ ModuleBase_ModelWidget* ModuleBase_OperationFeature::activateByPreselection(
           aWgt = (*aWIt);
           if (aWgt->attributeID() == theGreedAttributeId) {
             aPropertyPanel->setPreselectionWidget(aWgt);
-            aWgt->setSelection(myPreSelection, true);
-            aPropertyPanel->setPreselectionWidget(NULL);
-            aFilledWgt = aWgt;
-            break;
+            if (aWgt->setSelection(myPreSelection, true)) {
+              aPropertyPanel->setPreselectionWidget(NULL);
+              aFilledWgt = aWgt;
+              break;
+            }
+            else { // do not process invalid for greed widget selection
+              break;
+            }
           }
         }
       }