Skip to content
Permalink
Browse files

[composer] Prevent more Qt warnings for html item

  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 1b51508 commit 40465ca6854cc4371762d362bdfd88398793189b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/composer/qgscomposerhtml.cpp
@@ -245,6 +245,10 @@ void QgsComposerHtml::renderCachedImage()
delete mRenderedPage;
}
mRenderedPage = new QImage( mWebPage->viewportSize(), QImage::Format_ARGB32 );
if ( mRenderedPage->isNull() )
{
return;
}
QPainter painter;
painter.begin( mRenderedPage );
mWebPage->mainFrame()->render( &painter );

0 comments on commit 40465ca

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