Skip to content
Permalink
Browse files

Fix number precision in world file generation

  • Loading branch information
mhugo authored and mhugent committed Jul 11, 2013
1 parent c6c27e0 commit 2a6887b4f5abbe82c9a04a167bf1cd14bac839cf
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/app/composer/qgscomposer.cpp
@@ -2365,10 +2365,10 @@ void QgsComposer::writeWorldFile( QString worldFileName, double a, double b, dou

// QString::number does not use locale settings (for the decimal point)
// which is what we want here
fout << QString::number(a) << "\r\n";
fout << QString::number(d) << "\r\n";
fout << QString::number(b) << "\r\n";
fout << QString::number(e) << "\r\n";
fout << QString::number(c) << "\r\n";
fout << QString::number(f) << "\r\n";
fout << QString::number(a, 'f') << "\r\n";
fout << QString::number(d, 'f') << "\r\n";
fout << QString::number(b, 'f') << "\r\n";
fout << QString::number(e, 'f') << "\r\n";
fout << QString::number(c, 'f') << "\r\n";
fout << QString::number(f, 'f') << "\r\n";
}

0 comments on commit 2a6887b

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