Skip to content
Permalink
Browse files
page size also for print mode
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12102 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 13, 2009
1 parent 534e1bc commit 314bdcf19cab974153eef81ef67254a862a66c89
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/composer/qgscomposer.cpp
@@ -453,7 +453,6 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
void QgsComposer::on_mActionPrint_triggered()
{
QPrinter printer;
//portrait or landscape
if ( mComposition )
{
if ( mComposition->paperWidth() >= mComposition->paperHeight() )
@@ -465,10 +464,12 @@ void QgsComposer::on_mActionPrint_triggered()
printer.setOrientation( QPrinter::Portrait );
}
}
printer.setPaperSize( QSizeF( mComposition->paperWidth(), mComposition->paperHeight() ), QPrinter::Millimeter );
QPrintDialog printDialog( &printer, 0 );

if ( printDialog.exec() != QDialog::Accepted )
{
return;
}

print( printer );
}

0 comments on commit 314bdcf

Please sign in to comment.