From 1a9517071ec4a4749b31d6bf3ecda9592b9ea462 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sat, 4 Sep 2010 19:58:42 +0200 Subject: [PATCH] Remove the call to GetTextExtents and try to align in another way (that won't crash macs) --- gui/statsPane.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 2e73af496..3786b7edc 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -456,13 +456,12 @@ class StatsPane(wx.Panel): box.Add(wx.StaticText(self.fullPanel, wx.ID_ANY, "%"), 0, wx.ALIGN_CENTER) box = wx.BoxSizer(wx.VERTICAL) - box.SetMinSize(wx.Size(self.getTextExtentW("WWWWk"), -1)) lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "") box.Add(lbl, 0, wx.ALIGN_CENTER) setattr(self, "labelResistance%sEhp" % tankType.capitalize(), lbl) - sizerResistances.Add(box, 0, wx.ALIGN_CENTER) + sizerResistances.Add(box, 1, wx.ALIGN_CENTER) # Resistances