Skip to content

Commit 13f500b

Browse files
authoredSep 18, 2018
Merge pull request #7929 from elpaso/bugfix-18102-advanced-digitizing-comma
[bugfix] Fixes float input in advanced digitizing ...
2 parents 7c83841 + fc66172 commit 13f500b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsadvanceddigitizingdockwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ QgsAdvancedDigitizingDockWidget::CadConstraint *QgsAdvancedDigitizingDockWidget:
310310
double QgsAdvancedDigitizingDockWidget::parseUserInput( const QString &inputValue, bool &ok ) const
311311
{
312312
ok = false;
313-
double value = inputValue.toDouble( &ok );
313+
double value = qgsPermissiveToDouble( inputValue, ok );
314314
if ( ok )
315315
{
316316
return value;
@@ -1092,7 +1092,7 @@ void QgsAdvancedDigitizingDockWidget::CadConstraint::setValue( double value, boo
10921092
{
10931093
mValue = value;
10941094
if ( updateWidget )
1095-
mLineEdit->setText( QString::number( value, 'f' ) );
1095+
mLineEdit->setText( QLocale().toString( value, 'f', 6 ) );
10961096
}
10971097

10981098
void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleLocked()

0 commit comments

Comments
 (0)
Please sign in to comment.