preselection of a point, start a line creation. A line is created with the second point in the origin.
The same problem is for the preselection in the translation operation.
aFilledWgt = aWgt;
}*/
- // 3. activate the next obligatory widget
- myPropertyPanel->activateNextWidget(aFilledWgt);
+ // 3. a signal should be emitted before the next widget activation
+ // because, the activation of the next widget will give a focus to the widget. As a result
+ // the value of the widget is initialized. And commit may happens until the value is entered.
if (aFilledWgt)
emit activatedByPreselection();
+ // 4. activate the next obligatory widget
+ myPropertyPanel->activateNextWidget(aFilledWgt);
}
void ModuleBase_Operation::setParentFeature(CompositeFeaturePtr theParent)
bool isDone = false;
for (int i = thePosition; i < theValues.size(); i++) {
ModuleBase_ViewerPrs aValue = theValues[i];
- thePosition++;
bool aProcessed = false;
if (isValidSelection(aValue)) {
aProcessed = setSelectionCustom(aValue);
// when an object, which do not satisfy the validating process, stop set selection
if (!aProcessed)
break;
+ else
+ thePosition++;
}
if (isDone) {
updateObject(myFeature);