Updated builtinViewColumns.attributeDisplay to use CachingImageList.GetImageIndex

This commit is contained in:
HomeWorld
2010-12-07 14:49:58 +02:00
parent 7be2edc0f5
commit f34d038308

View File

@@ -39,13 +39,10 @@ class AttributeDisplay(ViewColumn):
iconFile = info.icon.iconFile if info.icon else None
iconType = "pack"
if iconFile:
bitmap = bitmapLoader.getBitmap(iconFile, iconType)
if bitmap:
self.imageId = fittingView.imageList.Add(bitmap)
else:
self.imageId = -1
self.imageId = fittingView.imageList.GetImageIndex(iconFile, iconType)
else:
self.imageId = -1
self.mask = wx.LIST_MASK_IMAGE
else:
self.imageId = -1