Skip to content

Commit

Permalink
Fix missing initial render of composer maps
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent a1160e9 commit 7f1a074
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -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

Expand Down

0 comments on commit 7f1a074

Please sign in to comment.