History loses information after baseline correct -> undo -> redo

  1. have a spectrum
  2. Baseline correct (with polynomal, degree=3).
  3. Get history: Baseline corrected dimension 1 (poly, deg=3)
  4. Undo
  5. Redo
  6. Get history: Baseline corrected dimension 1

In other words, you lose the information about the type of correction. Reason: the self.undoList entry doesn't have these arguments yet (spectrum.py)

Likely requires a trivial change of: self.undoList.append(lambda self: self.baselineCorrection(-baseline, axis, select=select)) to: self.undoList.append(lambda self: self.baselineCorrection(-baseline, axis, select=select, degree=degree, ftype=ftype))

Edited by Sander Lambregts