We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ccbb98 commit 07e13beCopy full SHA for 07e13be
src/app/composer/qgscomposer.cpp
@@ -495,19 +495,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
495
496
void QgsComposer::on_mActionPrint_triggered()
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 );
+ //orientation and page size are already set to QPrinter in the page setup dialog
511
QPrintDialog printDialog( &mPrinter, 0 );
512
if ( printDialog.exec() != QDialog::Accepted )
513
0 commit comments