Skip to content

Commit

Permalink
Merge pull request #7929 from elpaso/bugfix-18102-advanced-digitizing…
Browse files Browse the repository at this point in the history
…-comma

[bugfix] Fixes float input in advanced digitizing ...
  • Loading branch information
elpaso committed Sep 18, 2018
2 parents 7c83841 + fc66172 commit 13f500b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsadvanceddigitizingdockwidget.cpp
Expand Up @@ -310,7 +310,7 @@ QgsAdvancedDigitizingDockWidget::CadConstraint *QgsAdvancedDigitizingDockWidget:
double QgsAdvancedDigitizingDockWidget::parseUserInput( const QString &inputValue, bool &ok ) const
{
ok = false;
double value = inputValue.toDouble( &ok );
double value = qgsPermissiveToDouble( inputValue, ok );
if ( ok )
{
return value;
Expand Down Expand Up @@ -1092,7 +1092,7 @@ void QgsAdvancedDigitizingDockWidget::CadConstraint::setValue( double value, boo
{
mValue = value;
if ( updateWidget )
mLineEdit->setText( QString::number( value, 'f' ) );
mLineEdit->setText( QLocale().toString( value, 'f', 6 ) );
}

void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleLocked()
Expand Down

0 comments on commit 13f500b

Please sign in to comment.