Skip to content
Permalink
Browse files

Intendention update

  • Loading branch information
mhugent committed Sep 8, 2013
1 parent 2a6887b commit 5d093f4e434ce6d98b18ec77c5c12f4daf5e5294
Showing with 15 additions and 15 deletions.
  1. +15 −15 src/app/composer/qgscomposer.cpp
@@ -1158,15 +1158,15 @@ void QgsComposer::on_mActionExportAsImage_triggered()
// Write the world file if asked to
if ( mComposition->generateWorldFile() )
{
double a, b, c, d, e, f;
mComposition->computeWorldFileParameters( a, b, c, d, e, f );
QFileInfo fi( filename );
// build the world file name
QString worldFileName = fi.absolutePath() + "/" + fi.baseName() + "."
+ fi.suffix()[0] + fi.suffix()[fi.suffix().size()-1] + "w";
writeWorldFile( worldFileName, a, b, c, d, e, f );
double a, b, c, d, e, f;
mComposition->computeWorldFileParameters( a, b, c, d, e, f );

QFileInfo fi( filename );
// build the world file name
QString worldFileName = fi.absolutePath() + "/" + fi.baseName() + "."
+ fi.suffix()[0] + fi.suffix()[fi.suffix().size()-1] + "w";

writeWorldFile( worldFileName, a, b, c, d, e, f );
}
}
atlasMap->endRender();
@@ -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, '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";
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 5d093f4

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