Fix for a possible bug (see comments in #1147).

This commit is contained in:
blitzmann
2017-05-12 22:26:49 -04:00
parent 5e20d6973f
commit 2e3c3e92f1

View File

@@ -55,7 +55,9 @@ class BaseName(ViewColumn):
if self.projectedView:
# we need a little more information for the projected view
fitID = self.mainFrame.getActiveFit()
return "%dx %s (%s)" % (stuff.getProjectionInfo(fitID).amount, stuff.name, stuff.ship.item.name)
info = stuff.getProjectionInfo(fitID)
if info:
return "%dx %s (%s)" % (stuff.getProjectionInfo(fitID).amount, stuff.name, stuff.ship.item.name)
else:
return "%s (%s)" % (stuff.name, stuff.ship.item.name)
elif isinstance(stuff, Rack):