Fix column bitmaps for maxRange column too

This commit is contained in:
cncfanatics
2010-08-25 13:46:32 +02:00
parent d5f842b737
commit 3d62f30a9c

View File

@@ -36,7 +36,10 @@ class MaxRange(ViewColumn):
iconFile = info.icon.iconFile if info.icon else None
if iconFile:
bitmap = bitmapLoader.getBitmap(iconFile, "pack")
self.imageId = fittingView.imageList.Add(bitmap)
if bitmap:
self.imageId = fittingView.imageList.Add(bitmap)
else:
self.imageId = -1
else:
self.imageId = -1
else: