[GRASS-SVN] r55685 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 10 06:27:59 PDT 2013
Author: annakrat
Date: 2013-04-10 06:27:59 -0700 (Wed, 10 Apr 2013)
New Revision: 55685
Modified:
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/psmap: fix segfault (wxPython 2.9)
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2013-04-10 13:20:12 UTC (rev 55684)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2013-04-10 13:27:59 UTC (rev 55685)
@@ -1097,8 +1097,6 @@
self.pdcPaper = wx.PseudoDC()
self.pdcTmp = wx.PseudoDC()
self.pdcImage = wx.PseudoDC()
- dc = wx.ClientDC(self)
- self.font = dc.GetFont()
self.SetClientSize((700,510))#?
self._buffer = wx.EmptyBitmap(*self.GetClientSize())
@@ -1904,7 +1902,7 @@
if pdctype == 'rectText':
dc = wx.ClientDC(self) # dc created because of method GetTextExtent, which pseudoDC lacks
- font = self.font
+ font = dc.GetFont()
size = 10
font.SetPointSize(size)
font.SetStyle(wx.ITALIC)
More information about the grass-commit
mailing list