Skip to content

Commit

Permalink
[composer] Prevent more Qt warnings for html item
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 1b51508 commit 40465ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/composer/qgscomposerhtml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 40465ca

Please sign in to comment.