Do not display falloff range if it is 0

Fixes ticket http://trac.evefit.org/ticket/225
This commit is contained in:
Corollax
2010-10-29 10:09:01 -05:00
parent eaa202b1fc
commit afa54ae1c0

View File

@@ -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)