Skip to content
Permalink
Browse files
Fix missing initial render of composer maps
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent a1160e9 commit 7f1a07487ae0b7039ec38672040fb2674ef57f44
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/core/composer/qgscomposermap.cpp
@@ -295,10 +295,8 @@ void QgsComposerMap::paint( QPainter *painter, const QStyleOptionGraphicsItem *,
}
else if ( mComposition->plotStyle() == QgsComposition::Preview )
{
//draw cached pixmap. This function does not call cache() any more because
//Qt 4.4.0 and 4.4.1 have problems with recursive paintings
//QgsComposerMap::cache() and QgsComposerMap::update() need to be called by
//client functions
if ( mCacheImage.isNull() )
cache();

//Background color is already included in cached image, so no need to draw

0 comments on commit 7f1a074

Please sign in to comment.