Skip to content

Commit

Permalink
[composer] Avoid Qt warnings with composer html item
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 22, 2014
1 parent b9e65b4 commit 9b00978
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/composer/qgscomposerhtml.cpp
Expand Up @@ -225,7 +225,10 @@ void QgsComposerHtml::recalculateFrameSizes()
mWebPage->setViewportSize( contentsSize );
mSize.setWidth( contentsSize.width() / mHtmlUnitsToMM );
mSize.setHeight( contentsSize.height() / mHtmlUnitsToMM );
renderCachedImage();
if ( contentsSize.isValid() )
{
renderCachedImage();
}
QgsComposerMultiFrame::recalculateFrameSizes();
emit changed();
}
Expand Down

0 comments on commit 9b00978

Please sign in to comment.