SpinBox fixed for values above the max value

Review comments
Fixes CURA-10096
This commit is contained in:
saumya.jain 2023-07-07 11:46:29 +02:00
parent fe5893feb6
commit 1ebde31397

View File

@ -113,8 +113,8 @@ Item
onTextChanged: onTextChanged:
{ {
var value = spinBox.valueFromText(spinBoxText.text); var value = spinBox.valueFromText(text);
spinBoxText.text = spinBox.textFromValue(value); text = spinBox.textFromValue(value);
spinBox.value = value; spinBox.value = value;
} }
} }