Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d46cdc1
)
Correction for selector(greed) widgets. Using preselection.
author
nds
<nds@opencascade.com>
Mon, 6 Jun 2016 06:27:41 +0000
(09:27 +0300)
committer
nds
<nds@opencascade.com>
Mon, 6 Jun 2016 06:27:41 +0000
(09:27 +0300)
src/ModuleBase/ModuleBase_OperationFeature.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_OperationFeature.cpp
b/src/ModuleBase/ModuleBase_OperationFeature.cpp
index 79d72de89761f36cc450988892111de81e249fbf..82cf7906b46389333501c75b28d77f7769f83750 100755
(executable)
--- a/
src/ModuleBase/ModuleBase_OperationFeature.cpp
+++ b/
src/ModuleBase/ModuleBase_OperationFeature.cpp
@@
-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;
+ }
}
}
}