}
myDefVal = QString::fromStdString(getDefaultValue()).toInt(&myHasDefault);
- if (isOk)
+ if (myHasDefault)
mySpinBox->setValue(myDefVal);
QString aTTip = translate(theData->widgetTooltip());
ModuleBase_Tools::setSpinText(mySpinBox, aText);
} else {
ModuleBase_Tools::setSpinValue(mySpinBox,
- anAttribute->isInitialized() ? anAttribute->value() : 0);
+ anAttribute->isInitialized() ? anAttribute->value() : myDefVal);
if (anAttribute->isInitialized() && anAttribute->expressionInvalid()) {
anAttribute->setExpressionError("");
anAttribute->setExpressionInvalid(false);
label="Angle"
icon="icons/Sketch/angle.png"
tooltip="Rotation angle"
- default="270" min="0" max="360"
+ default="360" min="0" max="360"
use_reset="false">
<validator id="SketchPlugin_MultiRotationAngleValidator" />
</doublevalue>
label="Angle"
icon="icons/Sketch/angle.png"
tooltip="Rotation angle"
- default="270" min="0" max="360"
+ default="90" min="0" max="360"
use_reset="false">
<validator id="SketchPlugin_MultiRotationAngleValidator" />
</doublevalue>