diff options
author | Remco Burema <r.burema@ultimaker.com> | 2020-12-11 19:18:23 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2020-12-11 19:18:23 +0300 |
commit | 5e7eb2fc93d39bb42acff91ef5d1edd82ad482c6 (patch) | |
tree | deb1a928b6783dc72b8619c1f0bb9cb2c9269686 | |
parent | b49d5ab9e91279ccc89dd14a0f5bf6a4887b51d6 (diff) |
No need for leading 0 in load-image num-fields.
fixes #8906
-rw-r--r-- | plugins/ImageReader/ConfigUI.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ImageReader/ConfigUI.qml b/plugins/ImageReader/ConfigUI.qml index a7dbc5f748..a3dceed50d 100644 --- a/plugins/ImageReader/ConfigUI.qml +++ b/plugins/ImageReader/ConfigUI.qml @@ -43,7 +43,7 @@ UM.Dialog TextField { id: peak_height objectName: "Peak_Height" - validator: RegExpValidator {regExp: /^\d{1,3}([\,|\.]\d*)?$/} + validator: RegExpValidator {regExp: /^\d{0,3}([\,|\.]\d*)?$/} width: 180 * screenScaleFactor onTextChanged: { manager.onPeakHeightChanged(text) } } @@ -66,7 +66,7 @@ UM.Dialog TextField { id: base_height objectName: "Base_Height" - validator: RegExpValidator {regExp: /^\d{1,3}([\,|\.]\d*)?$/} + validator: RegExpValidator {regExp: /^\d{0,3}([\,|\.]\d*)?$/} width: 180 * screenScaleFactor onTextChanged: { manager.onBaseHeightChanged(text) } } |