From e58be664c4e458f5b55d26abfab1c5e47edaabcd Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 8 Oct 2010 21:32:57 +0300 Subject: [PATCH] Fixed a MINOR oversight in itemstats affected by --- gui/itemStats.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/itemStats.py b/gui/itemStats.py index da7a7c4bc..5d6b13418 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -420,7 +420,7 @@ class ItemAffectedBy (wx.Panel): else: color = wx.Colour(237, 243, 254) - index = self.effectList.InsertStringItem(sys.maxint, "%s - affects attribute" % cat) + index = self.effectList.InsertStringItem(sys.maxint, "%s" % cat) counter = 0 self.effectList.SetItemBackgroundColour(index, color) @@ -429,6 +429,7 @@ class ItemAffectedBy (wx.Panel): counter += 1 dattrs = attrs if counter > 0: - self.effectList.InsertStringItem(sys.maxint, " %s %s" % ("".join(dattrs), "" if counter == 1 else "x %d" % counter)) - self.effectList.InsertStringItem(sys.maxint, "") + for cattr in dattrs: + self.effectList.InsertStringItem(sys.maxint, " %s %s" % (cattr, "" if counter == 1 else "x %d" % counter)) +# self.effectList.InsertStringItem(sys.maxint, "") self.Layout()