[GRASS-SVN] r55141 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 21 02:48:06 PST 2013
Author: annakrat
Date: 2013-02-21 02:48:05 -0800 (Thu, 21 Feb 2013)
New Revision: 55141
Modified:
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix multiline lables on Windows
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2013-02-21 10:13:02 UTC (rev 55140)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2013-02-21 10:48:05 UTC (rev 55141)
@@ -1924,8 +1924,8 @@
textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
pdc.SetTextForeground(wx.Colour(100,100,100,200))
pdc.SetBackgroundMode(wx.TRANSPARENT)
- pdc.DrawText(text = text, x = textRect.x, y = textRect.y)
-
+ pdc.DrawLabel(text = text, rect = textRect)
+
elif pdctype == 'point':
pdc.DrawCircle(x = bb[0] + bb[2] / 2,
y = bb[1] + bb[3] / 2,
More information about the grass-commit
mailing list