Skip to content
Permalink
Browse files

[composer] Prevent hangs when using html multi frames with a very sma…

…ll first frame
  • Loading branch information
nyalldawson committed Apr 29, 2014
1 parent dd739ef commit 046d0ff36f5c3e6b9f2e1973259feb2da7f6aa43
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/composer/qgscomposerhtml.cpp
@@ -185,7 +185,8 @@ double QgsComposerHtml::findNearbyPageBreak( double yPos )
QRgb currentColor;
QRgb pixelColor;
QList< QPair<int, int> > candidates;
for ( int candidateRow = idealPos; candidateRow >= idealPos - maxSearchDistance; --candidateRow )
int minRow = qMax( idealPos - maxSearchDistance, 0 );
for ( int candidateRow = idealPos; candidateRow >= minRow; --candidateRow )
{
changes = 0;
currentColor = qRgba( 0, 0, 0, 0 );

0 comments on commit 046d0ff

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