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@7316 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 3, 2007
1 parent 4ca4523 commit ccbc97072b13c484444ad245b74eabd3e46026a4
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 ccbc970

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