[GRASS-SVN] r56016 - grass/branches/develbranch_6/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 28 05:19:06 PDT 2013


Author: annakrat
Date: 2013-04-28 05:19:05 -0700 (Sun, 28 Apr 2013)
New Revision: 56016

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

Modified: grass/branches/develbranch_6/gui/wxpython/psmap/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-04-28 11:57:07 UTC (rev 56015)
+++ grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-04-28 12:19:05 UTC (rev 56016)
@@ -1925,8 +1925,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