Skip to content
Permalink
Browse files
Fix warning
  • Loading branch information
nyalldawson committed Nov 3, 2021
1 parent bc52103 commit 774e2fd713c75ddd8447ef385050bf7a73a6d1ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsdoublevalidator.cpp
@@ -140,7 +140,7 @@ double QgsDoubleValidator::toDouble( const QString &input, bool *ok )
value = QLocale( QLocale::C ).toDouble( input, ok );
}
// Still non ok? Try without locale's group separator
if ( ! *ok && ! QLocale().numberOptions() & QLocale::NumberOption::OmitGroupSeparator )
if ( ! *ok && !( QLocale().numberOptions() & QLocale::NumberOption::OmitGroupSeparator ) )
{
value = QLocale( ).toDouble( QString( input ).replace( QLocale().groupSeparator(), QString() ), ok );
}

0 comments on commit 774e2fd

Please sign in to comment.