Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix number precision in world file generation
  • Loading branch information
Hugo Mercier authored and mhugent committed Sep 8, 2013
1 parent c6c27e0 commit 2a6887b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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.