From afa54ae1c0c1b0fe721f55bdd876fac9ea6994f3 Mon Sep 17 00:00:00 2001 From: Corollax Date: Fri, 29 Oct 2010 10:09:01 -0500 Subject: [PATCH] Do not display falloff range if it is 0 Fixes ticket http://trac.evefit.org/ticket/225 --- gui/builtinViewColumns/maxRange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinViewColumns/maxRange.py b/gui/builtinViewColumns/maxRange.py index 19df09f8c..6fc02fc3a 100644 --- a/gui/builtinViewColumns/maxRange.py +++ b/gui/builtinViewColumns/maxRange.py @@ -52,7 +52,7 @@ class MaxRange(ViewColumn): def getText(self, stuff): maxRange = stuff.maxRange if hasattr(stuff, "maxRange") else stuff.getModifiedItemAttr("maxRange") falloff = stuff.getModifiedItemAttr("falloff") - if falloff is None: + if not falloff: falloff = "" else: falloff = "+%sm" % formatAmount(falloff, 3, 0, 3)