File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
481
481
482
482
printer.setOutputFormat ( QPrinter::PdfFormat );
483
483
printer.setOutputFileName ( myOutputFileNameQString );
484
+ printer.setPaperSize ( QSizeF ( mComposition ->paperWidth (), mComposition ->paperHeight () ), QPrinter::Millimeter );
484
485
485
486
print ( printer );
486
487
}
@@ -506,16 +507,6 @@ void QgsComposer::print( QPrinter &printer )
506
507
showWMSPrintingWarning ();
507
508
}
508
509
509
- // try to set most of the print dialog settings based on composer properties
510
- if ( mComposition ->paperHeight () > mComposition ->paperWidth () )
511
- {
512
- printer.setOrientation ( QPrinter::Portrait );
513
- }
514
- else
515
- {
516
- printer.setOrientation ( QPrinter::Landscape );
517
- }
518
-
519
510
// set resolution based on composer setting
520
511
printer.setFullPage ( true );
521
512
printer.setColorMode ( QPrinter::Color );
You can’t perform that action at this time.
0 commit comments