diff --git a/src/items/paletteitem.cpp b/src/items/paletteitem.cpp index 6f1914eae..7edde8f35 100644 --- a/src/items/paletteitem.cpp +++ b/src/items/paletteitem.cpp @@ -1464,7 +1464,7 @@ bool PaletteItem::changeThickness(HoleSettings & holeSettings, QObject * sender) auto * edit = qobject_cast(sender); if (edit == nullptr) return false; - QLocale locale; + QLocale locale(QLocale::C); double newValue = locale.toDouble(edit->text()); QString temp = holeSettings.ringThickness; temp.chop(2); @@ -1487,7 +1487,7 @@ bool PaletteItem::changeDiameter(HoleSettings & holeSettings, QObject * sender) auto * edit = qobject_cast(sender); if (edit == nullptr) return false; - QLocale locale; + QLocale locale(QLocale::C); double newValue = locale.toDouble(edit->text()); QString temp = holeSettings.holeDiameter; temp.chop(2);