Skip to content

Commit 2a6887b

Browse files
Hugo Merciermhugent
Hugo Mercier
authored andcommittedSep 8, 2013
Fix number precision in world file generation
1 parent c6c27e0 commit 2a6887b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,10 +2365,10 @@ void QgsComposer::writeWorldFile( QString worldFileName, double a, double b, dou
23652365

23662366
// QString::number does not use locale settings (for the decimal point)
23672367
// which is what we want here
2368-
fout << QString::number(a) << "\r\n";
2369-
fout << QString::number(d) << "\r\n";
2370-
fout << QString::number(b) << "\r\n";
2371-
fout << QString::number(e) << "\r\n";
2372-
fout << QString::number(c) << "\r\n";
2373-
fout << QString::number(f) << "\r\n";
2368+
fout << QString::number(a, 'f') << "\r\n";
2369+
fout << QString::number(d, 'f') << "\r\n";
2370+
fout << QString::number(b, 'f') << "\r\n";
2371+
fout << QString::number(e, 'f') << "\r\n";
2372+
fout << QString::number(c, 'f') << "\r\n";
2373+
fout << QString::number(f, 'f') << "\r\n";
23742374
}

0 commit comments

Comments
 (0)
Please sign in to comment.