Skip to content
Permalink
Browse files

Fix positioning of new frames

  • Loading branch information
mhugent committed Aug 7, 2012
1 parent d703289 commit 7e97033a19b388e25e1775a47bf6fa48865e9d81
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposermultiframe.cpp
@@ -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();

0 comments on commit 7e97033

Please sign in to comment.
You can’t perform that action at this time.