0000697: Text boxes to set dimension constraints insert a space between thousands and hundreds digits that makes the data invalid.

This commit is contained in:
wmayer 2012-05-07 11:18:10 +02:00
parent 4b1c918f2d
commit 2ded296857

View File

@ -103,7 +103,7 @@ void EditDatumDialog::exec(bool atCursor)
if (dlg.exec()) {
bool ok;
double newDatum = ui_ins_datum.lineEdit->text().toDouble(&ok);
double newDatum = QLocale::system().toDouble(ui_ins_datum.lineEdit->text(), &ok);
if (ok) {
if (Constr->Type == Sketcher::Angle)
newDatum = Base::toRadians<double>(newDatum);