Skip to content
Permalink
Browse files

add note with Qt bug

  • Loading branch information
3nids committed Oct 26, 2018
1 parent 5fa533f commit f9fa60682caa03f1d688caa8574e265e7a275ddd
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgis.h
@@ -241,7 +241,12 @@ inline QString qgsDoubleToString( double a, int precision = 17 )
if ( precision )
return QString::number( a, 'f', precision ).remove( QRegularExpression( "\\.?0+$" ) );
else
#if QT_VERSION > QT_VERSION_CHECK( 5, 10, 0 )
// see https://bugreports.qt.io/browse/QTBUG-71439
return QString::number( a, 'f', precision ).replace( QRegularExpression( "^-0$" ), QLatin1Literal( "0" ) );
#else
return QString::number( a, 'f', precision );
#endif
}

/**

0 comments on commit f9fa606

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