From ae1bea7861d24bf5e2567d8b9f062df154d885ee Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 26 Oct 2011 00:07:45 +0400 Subject: [PATCH] Apply no-icon fix to affliction tree too --- gui/itemStats.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/itemStats.py b/gui/itemStats.py index cf98874b0..20e4eb26d 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -604,7 +604,11 @@ class ItemAffectedBy (wx.Panel): if attrInfo: if attrInfo.icon is not None: iconFile = attrInfo.icon.iconFile - attrIcon = self.imageList.Add(bitmapLoader.getBitmap(iconFile, "pack")) + icon = bitmapLoader.getBitmap(iconFile, "pack") + if icon is None: + icon = bitmapLoader.getBitmap("transparent16x16", "icons") + + attrIcon = self.imageList.Add(icon) else: attrIcon = self.imageList.Add(bitmapLoader.getBitmap("07_15", "pack")) else: