From f61aeb8285516239bdc4665cdd1d2107ebc4283b Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Thu, 9 Feb 2017 00:18:19 -0800 Subject: [PATCH] Fix bug where the toggle button the compare pane didn't do anything. (Need to check toggleView because you can hit both first and second if otherwise.) --- gui/itemStats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/itemStats.py b/gui/itemStats.py index a29340d61..0823ce7ff 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -665,7 +665,7 @@ class ItemCompare(wx.Panel): value = item.attributes[attr].value if self.toggleView != 1: valueUnit = str(value) - if info and info.unit: + elif info and info.unit and self.toggleView == 1: valueUnit = self.TranslateValueUnit(value, info.unit.displayName, info.unit.name) else: valueUnit = formatAmount(value, 3, 0, 0)