Skip to content

Commit 7f1a074

Browse files
committed
Fix missing initial render of composer maps
1 parent a1160e9 commit 7f1a074

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/core/composer/qgscomposermap.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,8 @@ void QgsComposerMap::paint( QPainter *painter, const QStyleOptionGraphicsItem *,
295295
}
296296
else if ( mComposition->plotStyle() == QgsComposition::Preview )
297297
{
298-
//draw cached pixmap. This function does not call cache() any more because
299-
//Qt 4.4.0 and 4.4.1 have problems with recursive paintings
300-
//QgsComposerMap::cache() and QgsComposerMap::update() need to be called by
301-
//client functions
298+
if ( mCacheImage.isNull() )
299+
cache();
302300

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

0 commit comments

Comments
 (0)