[GRASS-SVN] r51075 - grass/branches/develbranch_6/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 16 11:41:22 EDT 2012


Author: mmetz
Date: 2012-03-16 08:41:22 -0700 (Fri, 16 Mar 2012)
New Revision: 51075

Modified:
   grass/branches/develbranch_6/gui/wxpython/mapdisp/mapwindow.py
Log:
wxGUI: bug fix: wxPaintDC may be created only in EVT_PAINT handler

Modified: grass/branches/develbranch_6/gui/wxpython/mapdisp/mapwindow.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/mapdisp/mapwindow.py	2012-03-16 10:59:15 UTC (rev 51074)
+++ grass/branches/develbranch_6/gui/wxpython/mapdisp/mapwindow.py	2012-03-16 15:41:22 UTC (rev 51075)
@@ -471,7 +471,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