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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 8 01:08:00 EDT 2011


Author: cmbarton
Date: 2011-09-07 22:08:00 -0700 (Wed, 07 Sep 2011)
New Revision: 48197

Modified:
   grass/trunk/gui/wxpython/gui_modules/psmap.py
Log:
Fix to map info text rectangle

Modified: grass/trunk/gui/wxpython/gui_modules/psmap.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/psmap.py	2011-09-08 03:30:39 UTC (rev 48196)
+++ grass/trunk/gui/wxpython/gui_modules/psmap.py	2011-09-08 05:08:00 UTC (rev 48197)
@@ -1512,7 +1512,8 @@
             dc.SetFont(font)
             pdc.SetFont(font)
             text = '\n'.join(self.itemLabels[self.instruction[drawid].type])
-            textExtent = dc.GetMultiLineTextExtent(text)
+            w,h,lh = dc.GetMultiLineTextExtent(text)
+            textExtent = (w,h)
             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