Skip to content
Permalink
Browse files
Fix for bug #1980, pdf paper size
git-svn-id: http://svn.osgeo.org/qgis/trunk@11766 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 7, 2009
1 parent 9e04940 commit 48402812c73868a18093aeca248691918c59abf1
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/app/composer/qgscomposer.cpp
@@ -481,6 +481,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()

printer.setOutputFormat( QPrinter::PdfFormat );
printer.setOutputFileName( myOutputFileNameQString );
printer.setPaperSize( QSizeF( mComposition->paperWidth(), mComposition->paperHeight() ), QPrinter::Millimeter );

print( printer );
}
@@ -506,16 +507,6 @@ void QgsComposer::print( QPrinter &printer )
showWMSPrintingWarning();
}

//try to set most of the print dialog settings based on composer properties
if ( mComposition->paperHeight() > mComposition->paperWidth() )
{
printer.setOrientation( QPrinter::Portrait );
}
else
{
printer.setOrientation( QPrinter::Landscape );
}

//set resolution based on composer setting
printer.setFullPage( true );
printer.setColorMode( QPrinter::Color );

0 comments on commit 4840281

Please sign in to comment.