Skip to content

Commit

Permalink
refs #6741
Browse files Browse the repository at this point in the history
Fix resolution issues when printing in raster mode
  • Loading branch information
Hugo Mercier committed Dec 12, 2012
1 parent d584b76 commit 948faef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -671,6 +671,8 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
if ( atlasOnASingleFile )
{
mComposition->beginPrintAsPDF( printer, outputFileName );
// set the correct resolution
mComposition->beginPrint( printer );
painter.begin( &printer );
}

Expand Down Expand Up @@ -703,6 +705,8 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
{
outputFileName = QDir( outputDir ).filePath( atlasMap->currentFilename() ) + ".pdf";
mComposition->beginPrintAsPDF( printer, outputFileName );
// set the correct resolution
mComposition->beginPrint( printer );
painter.begin( &printer );
mComposition->doPrint( printer, painter );
painter.end();
Expand Down

0 comments on commit 948faef

Please sign in to comment.