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
This commit is contained in:
mhugent 2007-11-03 15:06:25 +00:00
parent 4ca4523eb4
commit ccbc97072b

View File

@ -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);
}