We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 878e9c8 commit 8ee164dCopy full SHA for 8ee164d
src/app/composer/qgscomposer.cpp
@@ -453,7 +453,6 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
453
void QgsComposer::on_mActionPrint_triggered()
454
{
455
QPrinter printer;
456
- //portrait or landscape
457
if ( mComposition )
458
459
if ( mComposition->paperWidth() >= mComposition->paperHeight() )
@@ -465,10 +464,12 @@ void QgsComposer::on_mActionPrint_triggered()
465
464
printer.setOrientation( QPrinter::Portrait );
466
}
467
+ printer.setPaperSize( QSizeF( mComposition->paperWidth(), mComposition->paperHeight() ), QPrinter::Millimeter );
468
QPrintDialog printDialog( &printer, 0 );
469
-
470
if ( printDialog.exec() != QDialog::Accepted )
+ {
471
return;
472
+ }
473
474
print( printer );
475
0 commit comments