+ fix problem with values > 1000 in quantity spinbox

This commit is contained in:
wmayer
2015-01-19 21:59:51 +01:00
parent 74cf72511a
commit 798a74f9ff

View File

@@ -129,12 +129,12 @@ public:
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;
}
}
}
}