Commit bc87268c authored by Xaver Hugl's avatar Xaver Hugl
Browse files

Fix valueFromText for scale spinboxes

parent 5245a9f8
......@@ -89,7 +89,7 @@ ColumnLayout {
return i18nc("Global scale factor expressed in percentage form", "%1%", parseFloat(value * 1.0 / factor * 100.0));
}
valueFromText: function(text, locale) {
return Number.fromLocaleString(locale, text) * factor / 100.0
return Number.fromLocaleString(locale, text.replace("%", "")) * factor / 100.0
}
onValueModified: element.scale = realValue
}
......
......@@ -119,7 +119,7 @@ ColumnLayout {
return i18nc("Global scale factor expressed in percentage form", "%1%", parseFloat(value * 1.0 / factor * 100.0));
}
valueFromText: function(text, locale) {
return Number.fromLocaleString(locale, text) * factor / 100.0
return Number.fromLocaleString(locale, text.replace("%", "")) * factor / 100.0
}
onValueModified: {
kcm.globalScale = realValue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment