[GRASS-SVN] r51068 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 16 04:41:21 EDT 2012
Author: mmetz
Date: 2012-03-16 01:41:21 -0700 (Fri, 16 Mar 2012)
New Revision: 51068
Modified:
grass/trunk/gui/wxpython/mapdisp/mapwindow.py
Log:
wxGUI: bug fix: wxPaintDC may be created only in EVT_PAINT handler
Modified: grass/trunk/gui/wxpython/mapdisp/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/mapwindow.py 2012-03-15 10:16:18 UTC (rev 51067)
+++ grass/trunk/gui/wxpython/mapdisp/mapwindow.py 2012-03-16 08:41:21 UTC (rev 51068)
@@ -470,7 +470,7 @@
# set back old coordinates
textinfo['coords'] = oldCoords
- dc = wx.BufferedPaintDC(self, ibuffer)
+ dc = wx.BufferedDC(None, ibuffer)
dc.Clear()
self.PrepareDC(dc)
self.pdc.DrawToDC(dc)
More information about the grass-commit
mailing list