Updated builtinViewColumns.maxRange to use CachingImageList.GetImageIndex

This commit is contained in:
HomeWorld
2010-12-07 15:01:23 +02:00
parent 893f52a49d
commit d5035de19f

View File

@@ -38,11 +38,7 @@ class MaxRange(ViewColumn):
if params["showIcon"]:
iconFile = info.icon.iconFile if info.icon else None
if iconFile:
bitmap = bitmapLoader.getBitmap(iconFile, "pack")
if bitmap:
self.imageId = fittingView.imageList.Add(bitmap)
else:
self.imageId = -1
self.imageId = fittingView.imageList.GetImageIndex(iconFile, "pack")
else:
self.imageId = -1
self.mask = wx.LIST_MASK_IMAGE