Fix fit removal

This commit is contained in:
cncfanatics
2010-11-13 15:25:26 +01:00
parent 0205dfb33c
commit 659e9ba580

View File

@@ -187,7 +187,7 @@ class GraphFrame(wx.Frame):
def removeItem(self, event):
row, _ = self.fitList.fitList.HitTest(event.Position)
if row != -1:
self.fits.remove(row)
del self.fits[row]
self.fitList.fitList.update(self.fits)
self.draw()