Skip to content

Commit c82c068

Browse files
author
mhugent
committed
Another fix to prevent concurrent rendering in composer
git-svn-id: http://svn.osgeo.org/qgis/trunk@11198 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f0b412a commit c82c068

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/composer/qgscomposermap.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i
224224
else if ( mComposition->plotStyle() == QgsComposition::Print ||
225225
mComposition->plotStyle() == QgsComposition::Postscript )
226226
{
227+
if ( mDrawing )
228+
{
229+
return;
230+
}
231+
232+
mDrawing = true;
227233
QPaintDevice* thePaintDevice = painter->device();
228234
if ( !thePaintDevice )
229235
{
@@ -233,6 +239,7 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i
233239
QRectF bRect = boundingRect();
234240
QSize theSize( bRect.width(), bRect.height() );
235241
draw( painter, mExtent, theSize, 25.4 ); //scene coordinates seem to be in mm
242+
mDrawing = false;
236243
}
237244

238245
drawFrame( painter );

0 commit comments

Comments
 (0)