Przeglądaj źródła

Bug fix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48196 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 lat temu
rodzic
commit
6e3bc0eaab
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      gui/wxpython/gui_modules/psmap.py

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

@@ -1512,8 +1512,7 @@ class PsMapBufferedWindow(wx.Window):
             dc.SetFont(font)
             pdc.SetFont(font)
             text = '\n'.join(self.itemLabels[self.instruction[drawid].type])
-            w,h,lh = dc.GetMultiLineTextExtent(text)
-            textExtent = (w,h)
+            textExtent = dc.GetMultiLineTextExtent(text)
             textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
             r = map(int, bb)
             while not wx.Rect(*r).ContainsRect(textRect) and size >= 8: