Skip to content

Commit f064cb0

Browse files
committed
Fix page resize
1 parent cabff38 commit f064cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgscomposition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ void QgsComposition::setPaperSize( double width, double height )
6767
double currentY = 0;
6868
for ( int i = 0; i < mPages.size(); ++i )
6969
{
70-
mPages.at( i )->setRect( QRectF( 0, currentY, width, height ) );
71-
++currentY;
70+
mPages.at( i )->setSceneRect( QRectF( 0, currentY, width, height ) );
71+
currentY += ( height + mSpaceBetweenPages );
7272
}
7373
}
7474

0 commit comments

Comments
 (0)