Skip to content
Permalink
Browse files
[composer] Make zoom full action actually zoom to all items, not just…
… page bounds
  • Loading branch information
nyalldawson committed Feb 13, 2014
1 parent 9e948df commit 020eb606a2f6a600da0f0bcf4c916a1d366e093d
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/app/composer/qgscomposer.cpp
@@ -957,14 +957,7 @@ void QgsComposer::zoomFull( void )
{
if ( mView )
{
int nPages = mComposition->numPages();
if ( nPages < 1 )
{
return;
}
double height = mComposition->paperHeight() * nPages + mComposition->spaceBetweenPages() * ( nPages - 1 );
mView->fitInView( 0, 0, mComposition->paperWidth() + 1, height + 1, Qt::KeepAspectRatio );
mView->centerOn(( mComposition->paperWidth() + 1 ) / 2, ( height + 1 ) / 2 );
mView->fitInView( mComposition->sceneRect(), Qt::KeepAspectRatio );
}
}

0 comments on commit 020eb60

Please sign in to comment.