[GRASS-SVN] r48196 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 7 23:30:39 EDT 2011


Author: cmbarton
Date: 2011-09-07 20:30:39 -0700 (Wed, 07 Sep 2011)
New Revision: 48196

Modified:
   grass/trunk/gui/wxpython/gui_modules/psmap.py
Log:
Bug fix

Modified: grass/trunk/gui/wxpython/gui_modules/psmap.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/psmap.py	2011-09-08 01:52:08 UTC (rev 48195)
+++ grass/trunk/gui/wxpython/gui_modules/psmap.py	2011-09-08 03:30:39 UTC (rev 48196)
@@ -1512,8 +1512,7 @@
             dc.SetFont(font)
             pdc.SetFont(font)
             text = '\n'.join(self.itemLabels[self.instruction[drawid].type])
-            w,h,lh = dc.GetMultiLineTextExtent(text)
-            textExtent = (w,h)
+            textExtent = dc.GetMultiLineTextExtent(text)
             textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
             r = map(int, bb)
             while not wx.Rect(*r).ContainsRect(textRect) and size >= 8:



More information about the grass-commit mailing list