Skip to content

Commit ccbc970

Browse files
author
mhugent
committedNov 3, 2007
Disable QGraphicsRectItem during long rendering action such that it does not get any concurrent paint events. This modification fixes the WMS render bug on win32 (at least for me, needs more testing though).
git-svn-id: http://svn.osgeo.org/qgis/trunk@7316 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4ca4523 commit ccbc970

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgsmapcanvasmap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ void QgsMapCanvasMap::paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidge
3434
{
3535
if (mCanvas->isDirty())
3636
{
37+
setEnabled(false);
3738
mCanvas->render();
39+
setEnabled(true);
3840
}
3941
p->drawPixmap(0,0, mPixmap);
4042
}

0 commit comments

Comments
 (0)
Please sign in to comment.