Skip to content
Permalink
Browse files

Merge pull request #354 from Oslandia/atlas

refs #6741
  • Loading branch information
mhugent committed Dec 16, 2012
2 parents 3b3d1a7 + 948faef commit 28582699f775634e321b63128e2ecd045f87317f
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 2858269

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