Skip to content

Commit 8d1452b

Browse files
author
g_j_m
committed
Fix for ticket #149.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5541 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 80495f8 commit 8d1452b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/gui/qgsmapcanvas.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ QgsMapLayer* QgsMapCanvas::currentLayer()
259259

260260
void QgsMapCanvas::refresh()
261261
{
262-
clear();
263-
updateContents();
262+
if (mRenderFlag)
263+
{
264+
clear();
265+
updateContents();
266+
}
264267
} // refresh
265268

266269
void QgsMapCanvas::drawContents(QPainter * p, int cx, int cy, int cw, int ch)

0 commit comments

Comments
 (0)