Skip to content
Permalink
Browse files

Disable QGraphicsRectItem during long rendering action such that it d…

…oes 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/qgis@7316 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 3, 2007
1 parent cc808ab commit 9223dd10c950a8e27b7746be387acc6f76587731
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmapcanvasmap.cpp
@@ -34,7 +34,9 @@ void QgsMapCanvasMap::paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidge
{
if (mCanvas->isDirty())
{
setEnabled(false);
mCanvas->render();
setEnabled(true);
}
p->drawPixmap(0,0, mPixmap);
}

0 comments on commit 9223dd1

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