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