Skip to content

Commit

Permalink
[composer] Make zoom full action actually zoom to all items, not just…
Browse files Browse the repository at this point in the history
… page bounds
  • Loading branch information
nyalldawson committed Feb 13, 2014
1 parent 9e948df commit 020eb60
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 020eb60

Please sign in to comment.