mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
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:
parent
4ca4523eb4
commit
ccbc97072b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user