Skip to content

Commit 2b48026

Browse files
committed
Fix perpetual rendering message on newly created maps
1 parent baa6592 commit 2b48026

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/core/composer/qgscomposermap.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,11 @@ void QgsComposerMap::paint( QPainter *painter, const QStyleOptionGraphicsItem *,
348348
painter->setFont( messageFont );
349349
painter->setPen( QColor( 255, 255, 255, 255 ) );
350350
painter->drawText( thisPaintRect, Qt::AlignCenter | Qt::AlignHCenter, tr( "Rendering map" ) );
351-
352-
353-
cache();
351+
if ( !mPainterJob )
352+
{
353+
// this is the map's very first paint - trigger a cache update
354+
cache();
355+
}
354356
}
355357
else
356358
{

0 commit comments

Comments
 (0)