Skip to content
Permalink
Browse files

Merge pull request #7929 from elpaso/bugfix-18102-advanced-digitizing…

…-comma

[bugfix] Fixes float input in advanced digitizing ...
  • Loading branch information
elpaso committed Sep 18, 2018
2 parents 7c83841 + fc66172 commit 13f500ba9e8d22eb86aee88f0ee2d6cbf566375b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsadvanceddigitizingdockwidget.cpp
@@ -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;
@@ -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()

0 comments on commit 13f500b

Please sign in to comment.
You can’t perform that action at this time.