Skip to content
Permalink
Browse files

[composer] Avoid Qt warnings with composer html item

  • Loading branch information
nyalldawson committed Sep 22, 2014
1 parent b9e65b4 commit 9b009785f9d1bfa5b62f46d764f79de5633fcacf
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/composer/qgscomposerhtml.cpp
@@ -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();
}

0 comments on commit 9b00978

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