Skip to content

Commit

Permalink
Fix positioning of new frames
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Aug 7, 2012
1 parent d703289 commit 7e97033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposermultiframe.cpp
Expand Up @@ -101,7 +101,7 @@ void QgsComposerMultiFrame::recalculateFrameSizes( bool addCommands )
}

//copy last frame
QgsComposerFrame* newFrame = new QgsComposerFrame( mComposition, this, 0, currentItem->transform().dy() + mComposition->paperHeight() + mComposition->spaceBetweenPages(),
QgsComposerFrame* newFrame = new QgsComposerFrame( mComposition, this, currentItem->transform().dx(), currentItem->transform().dy() + mComposition->paperHeight() + mComposition->spaceBetweenPages(),
currentItem->rect().width(), currentItem->rect().height() );
newFrame->setContentSection( QRectF( 0, currentY, newFrame->rect().width(), newFrame->rect().height() ) );
currentY += newFrame->rect().height();
Expand Down

0 comments on commit 7e97033

Please sign in to comment.