Skip to content

Commit

Permalink
Disable QGraphicsRectItem during long rendering action such that it d…
Browse files Browse the repository at this point in the history
…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 committed Nov 3, 2007
1 parent cc808ab commit 9223dd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmapcanvasmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9223dd1

Please sign in to comment.