Browse Source

Once more fixing text extent

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48198 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 years ago
parent
commit
327bb3d595
1 changed files with 1 additions and 2 deletions
  1. 1 2
      gui/wxpython/gui_modules/psmap.py

+ 1 - 2
gui/wxpython/gui_modules/psmap.py

@@ -1521,8 +1521,7 @@ class PsMapBufferedWindow(wx.Window):
                 font.SetPointSize(size)
                 dc.SetFont(font)
                 pdc.SetFont(font)
-                w,h,lh = dc.GetMutiLineTextExtent(text)
-                textExtent = (w,h)
+                textExtent = dc.GetTextExtent(text)
                 textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
             pdc.SetTextForeground(wx.Color(100,100,100,200)) 
             pdc.SetBackgroundMode(wx.TRANSPARENT)