Skip to content
Permalink
Browse files

refs #6741

Fix resolution issues when printing in raster mode
  • Loading branch information
mhugo committed Dec 12, 2012
1 parent d584b76 commit 948faefa1e13e88be6b451d86e7a4b2427ae1da7
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/composer/qgscomposer.cpp
@@ -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 );
}

@@ -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();

0 comments on commit 948faef

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