mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Merge pull request #7929 from elpaso/bugfix-18102-advanced-digitizing-comma
[bugfix] Fixes float input in advanced digitizing ...
This commit is contained in:
commit
13f500ba9e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user