Fix a bug, imageLists are zero-based

This commit is contained in:
cncfanatics
2010-08-28 21:52:27 +02:00
parent 4a3d6013ce
commit 322bc6ef6d

View File

@@ -92,7 +92,7 @@ class FittingView(wx.ListCtrl):
self.activeColumns[event.Column].resized = True
def clearItemImages(self):
for i in xrange(self.imageList.ImageCount, self.imageListBase, -1):
for i in xrange(self.imageList.ImageCount - 1, self.imageListBase, -1):
self.imageList.Remove(i)
#Gets called from the fitMultiSwitch when it decides its time