[GRASS-SVN] r48198 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 8 02:44:10 EDT 2011
Author: cmbarton
Date: 2011-09-07 23:44:10 -0700 (Wed, 07 Sep 2011)
New Revision: 48198
Modified:
grass/trunk/gui/wxpython/gui_modules/psmap.py
Log:
Once more fixing text extent
Modified: grass/trunk/gui/wxpython/gui_modules/psmap.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/psmap.py 2011-09-08 05:08:00 UTC (rev 48197)
+++ grass/trunk/gui/wxpython/gui_modules/psmap.py 2011-09-08 06:44:10 UTC (rev 48198)
@@ -1521,8 +1521,7 @@
font.SetPointSize(size)
dc.SetFont(font)
pdc.SetFont(font)
- w,h,lh = dc.GetMutiLineTextExtent(text)
- textExtent = (w,h)
+ textExtent = dc.GetTextExtent(text)
textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
pdc.SetTextForeground(wx.Color(100,100,100,200))
pdc.SetBackgroundMode(wx.TRANSPARENT)
More information about the grass-commit
mailing list