no "i" variable anymore

This commit is contained in:
Martin 2021-02-02 15:10:02 -08:00
parent d9eb8e1afb
commit b9086f1023

View File

@ -1019,7 +1019,7 @@ class PlotItem(GraphicsWidget):
if numCurves != -1:
if self.ctrl.forgetTracesCheck.isChecked():
curve.clear()
self.removeItem(curves[i])
self.removeItem(curve)
else:
curve.hide()