mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[bugfix] Fixes float input in advanced digitizing ...
... with not-dot locales Fixes #18102 - Can only input integer value in the vertex editor Precision is hardcoded to 6 decimal places, we can either increase it or make it configurable.
This commit is contained in:
parent
b6dba2d5e2
commit
fc6617251d
@ -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