Skip to content

Commit

Permalink
+ fix problem with values > 1000 in quantity spinbox
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 19, 2015
1 parent a91fcc6 commit 85214a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Gui/QuantitySpinBox.cpp
Expand Up @@ -129,12 +129,12 @@ class QuantitySpinBoxPrivate
state = QValidator::Invalid;
goto end;
}
}
for (int i=dec + 1; i<copy.size(); ++i) {
// a group separator after the decimal point is not allowed
if (copy.at(i) == locale.groupSeparator()) {
state = QValidator::Invalid;
goto end;
for (int i=dec + 1; i<copy.size(); ++i) {
// a group separator after the decimal point is not allowed
if (copy.at(i) == locale.groupSeparator()) {
state = QValidator::Invalid;
goto end;
}
}
}
}
Expand Down

0 comments on commit 85214a4

Please sign in to comment.