Skip to content
Permalink
Browse files

fix build with Qt <5.7

  • Loading branch information
jef-n committed Jun 13, 2018
1 parent 3651df0 commit 262cee6f346e8274c32308fd681a12eef5662bff
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgsfield.cpp
@@ -333,7 +333,9 @@ void TestQgsField::displayString()
QgsField doubleFieldNoPrec( QStringLiteral( "double" ), QVariant::Double, QStringLiteral( "double" ), 10 );
QCOMPARE( doubleFieldNoPrec.displayString( 5.005005 ), QString( "5.005005" ) );
QCOMPARE( doubleFieldNoPrec.displayString( 5.005005005 ), QString( "5.005005005" ) );
#if QT_VERSION >= 0x050700
QCOMPARE( QLocale().numberOptions() & QLocale::NumberOption::OmitGroupSeparator, QLocale::NumberOption::DefaultNumberOptions );
#endif
QCOMPARE( doubleFieldNoPrec.displayString( 599999898999.0 ), QString( "599,999,898,999" ) );

//test NULL double

0 comments on commit 262cee6

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