From a1f07be2add3b5eaa9372f10ee6f55e31339de5e Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sat, 30 Oct 2010 18:47:56 +0300 Subject: [PATCH] Count++ in wrong position --- gui/builtinStatsViews/firepowerViewFull.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/builtinStatsViews/firepowerViewFull.py b/gui/builtinStatsViews/firepowerViewFull.py index 19b113b52..8accb64be 100644 --- a/gui/builtinStatsViews/firepowerViewFull.py +++ b/gui/builtinStatsViews/firepowerViewFull.py @@ -52,8 +52,6 @@ class FirepowerViewFull(StatsView): for damageType, image in (("weapon", "turret") , ("drone", "droneDPS")): baseBox = wx.BoxSizer(wx.HORIZONTAL) - - counter += 1 sizerFirepower.Add(baseBox, 1, wx.ALIGN_LEFT if counter == 0 else wx.ALIGN_CENTER_HORIZONTAL) baseBox.Add(bitmapLoader.getStaticBitmap("%s_big" % image, parent, "icons"), 0, wx.ALIGN_CENTER) @@ -72,6 +70,7 @@ class FirepowerViewFull(StatsView): hbox.Add(lbl, 0, wx.ALIGN_CENTER) # hbox.Add(wx.StaticText(parent, wx.ID_ANY, " DPS"), 0, wx.ALIGN_CENTER) self._cachedValues.append(0) + counter += 1 targetSizer = sizerFirepower baseBox = wx.BoxSizer(wx.HORIZONTAL)