Updated builtinViewColumns.price to use CachingImageList.GetImageIndex

This commit is contained in:
HomeWorld
2010-12-07 15:03:36 +02:00
parent d5035de19f
commit a092e39b8b

View File

@@ -29,11 +29,7 @@ class Price(ViewColumn):
ViewColumn.__init__(self, fittingView)
self.mask = wx.LIST_MASK_IMAGE
bitmap = bitmapLoader.getBitmap("totalPrice_small", "icons")
if bitmap:
self.imageId = fittingView.imageList.Add(bitmap)
else:
self.imageId = -1
self.imageId = fittingView.imageList.GetImageIndex("totalPrice_small", "icons")
def getText(self, stuff):
if stuff.item is None: