From 322bc6ef6d048d24bed386f1cb74471a519b6782 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sat, 28 Aug 2010 21:52:27 +0200 Subject: [PATCH] Fix a bug, imageLists are zero-based --- gui/fittingView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/fittingView.py b/gui/fittingView.py index 0837852b1..c06ae266e 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -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