[GRASS-SVN] r51076 - grass/branches/releasebranch_6_4/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 16 11:43:03 EDT 2012


Author: mmetz
Date: 2012-03-16 08:43:03 -0700 (Fri, 16 Mar 2012)
New Revision: 51076

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/mapdisp/mapwindow.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/mapdisp/mapwindow.py	2012-03-16 15:41:22 UTC (rev 51075)
+++ grass/branches/releasebranch_6_4/gui/wxpython/mapdisp/mapwindow.py	2012-03-16 15:43:03 UTC (rev 51076)
@@ -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