Skip to content

Commit

Permalink
Also use c locale in change functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern committed May 29, 2024
1 parent 856cc7c commit e5f8eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/items/paletteitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ bool PaletteItem::changeThickness(HoleSettings & holeSettings, QObject * sender)
auto * edit = qobject_cast<QLineEdit *>(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);
Expand All @@ -1487,7 +1487,7 @@ bool PaletteItem::changeDiameter(HoleSettings & holeSettings, QObject * sender)
auto * edit = qobject_cast<QLineEdit *>(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);
Expand Down

0 comments on commit e5f8eb6

Please sign in to comment.