[GRASS-SVN] r55182 - grass/branches/releasebranch_6_4/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 23 00:53:38 PST 2013


Author: annakrat
Date: 2013-02-23 00:53:38 -0800 (Sat, 23 Feb 2013)
New Revision: 55182

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix multiline labels on Windows (merge from trunk, r55141)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/psmap/frame.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/psmap/frame.py	2013-02-22 20:27:35 UTC (rev 55181)
+++ grass/branches/releasebranch_6_4/gui/wxpython/psmap/frame.py	2013-02-23 08:53:38 UTC (rev 55182)
@@ -1916,8 +1916,8 @@
                 textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
             pdc.SetTextForeground(wx.Color(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