Skip to content
Permalink
Browse files

Another fix to prevent concurrent rendering in composer

git-svn-id: http://svn.osgeo.org/qgis/trunk@11198 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 29, 2009
1 parent f0b412a commit c82c068d016384dfb3842a47263e22d424dc1c58
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/composer/qgscomposermap.cpp
@@ -224,6 +224,12 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i
else if ( mComposition->plotStyle() == QgsComposition::Print ||
mComposition->plotStyle() == QgsComposition::Postscript )
{
if ( mDrawing )
{
return;
}

mDrawing = true;
QPaintDevice* thePaintDevice = painter->device();
if ( !thePaintDevice )
{
@@ -233,6 +239,7 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i
QRectF bRect = boundingRect();
QSize theSize( bRect.width(), bRect.height() );
draw( painter, mExtent, theSize, 25.4 ); //scene coordinates seem to be in mm
mDrawing = false;
}

drawFrame( painter );

0 comments on commit c82c068

Please sign in to comment.
You can’t perform that action at this time.