Jelajahi Sumber

wxGUI/composer: fix multiline lables on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55141 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 tahun lalu
induk
melakukan
2b132c545b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      gui/wxpython/psmap/frame.py

+ 2 - 2
gui/wxpython/psmap/frame.py

@@ -1924,8 +1924,8 @@ class PsMapBufferedWindow(wx.Window):
                 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,