Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make qgis_fieldtest all Qt 5.X compatible
In https://codereview.qt-project.org/#/c/99815/ implemented in QT 5.5, doubles are converted to strings using '%.17g', so short decimal values might be expanded to long strings depending on their values. https://wiki.qt.io/New_Features_in_Qt_5.7 has a logic to avoid this, but if we select carefully the double to have both an exact binary and decimal representation, that can work will all versions. $ python -c "print('%.17g' % 9.7)" 9.6999999999999993 $ python -c "print('%.17g' % 1.25)" 1.25
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -24,4 +24,3 @@ qgis_composermapgridtest | ||
qgis_composertabletest | ||
qgis_composertablev2test | ||
qgis_composerutils | ||
qgis_fieldtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters