File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -495,19 +495,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
495
495
496
496
void QgsComposer::on_mActionPrint_triggered ()
497
497
{
498
- // QPrinter printer;
499
- if ( mComposition )
500
- {
501
- if ( mComposition ->paperWidth () >= mComposition ->paperHeight () )
502
- {
503
- mPrinter .setOrientation ( QPrinter::Landscape );
504
- }
505
- else
506
- {
507
- mPrinter .setOrientation ( QPrinter::Portrait );
508
- }
509
- }
510
- mPrinter .setPaperSize ( QSizeF ( mComposition ->paperWidth (), mComposition ->paperHeight () ), QPrinter::Millimeter );
498
+ // orientation and page size are already set to QPrinter in the page setup dialog
511
499
QPrintDialog printDialog ( &mPrinter , 0 );
512
500
if ( printDialog.exec () != QDialog::Accepted )
513
501
{
You can’t perform that action at this time.
0 commit comments