ModuleBase_ViewerPrs aPrs;
QList<ModuleBase_ModelWidget*>::const_iterator aWIt;
QList<ModuleBase_ViewerPrs>::const_iterator aPIt;
+ bool isSet = false;
for (aWIt = aWidgets.constBegin(), aPIt = myPreSelection.constBegin();
(aWIt != aWidgets.constEnd()) && (aPIt != myPreSelection.constEnd());
++aWIt, ++aPIt) {
// Check if the selection has a selected point
// for today it is impossible to do because
// the selected point demands convertation to Sketch plane 2d
- if (!aWgt->setValue(&aValue))
+ if (!aWgt->setValue(&aValue)) {
+ isSet = false;
break;
+ } else
+ isSet = true;
}
- if (canBeCommitted()) {
+ if (isSet && canBeCommitted()) {
// if all widgets are filled with selection
commit();
return true;