Updated builtinViewColumns.ammo to use CachingImageList.GetImageIndex
This commit is contained in:
@@ -27,7 +27,7 @@ class Ammo(ViewColumn):
|
||||
def __init__(self, fittingView, params):
|
||||
ViewColumn.__init__(self, fittingView)
|
||||
self.mask = wx.LIST_MASK_IMAGE
|
||||
self.imageId = fittingView.imageList.Add(bitmapLoader.getBitmap("damagePattern_small", "icons"))
|
||||
self.imageId = fittingView.imageList.GetImageIndex("damagePattern_small", "icons")
|
||||
|
||||
def getText(self, stuff):
|
||||
return "%s (%s)" % (stuff.charge.name, stuff.numCharges) if getattr(stuff, "charge", None) is not None else ""
|
||||
|
||||
Reference in New Issue
Block a user