|
@@ -1521,8 +1521,7 @@ class PsMapBufferedWindow(wx.Window):
|
|
font.SetPointSize(size)
|
|
font.SetPointSize(size)
|
|
dc.SetFont(font)
|
|
dc.SetFont(font)
|
|
pdc.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)
|
|
textRect = wx.Rect(0, 0, *textExtent).CenterIn(bb)
|
|
pdc.SetTextForeground(wx.Color(100,100,100,200))
|
|
pdc.SetTextForeground(wx.Color(100,100,100,200))
|
|
pdc.SetBackgroundMode(wx.TRANSPARENT)
|
|
pdc.SetBackgroundMode(wx.TRANSPARENT)
|