Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 3, 2021
1 parent bc52103 commit 774e2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsdoublevalidator.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 774e2fd

Please sign in to comment.