diff --git a/source/diff.py b/source/diff.py index 0b36408..9e116c7 100644 --- a/source/diff.py +++ b/source/diff.py @@ -272,10 +272,6 @@ class LOCalc(LODocument): self.cell_style[name] = obj return LOCellStyle(obj) - def clear_undo(self): - self.obj.getUndoManager().clear() - return - def filter_by_color(self, cell=None): if cell is None: cell = self.selection.first diff --git a/source/easymacro2.py b/source/easymacro2.py index f4cd16a..ede3aae 100644 --- a/source/easymacro2.py +++ b/source/easymacro2.py @@ -1067,6 +1067,10 @@ class LODocument(object): else: um.enterHiddenUndoContext() + def clear_undo(self): + self.obj.getUndoManager().clear() + return + @property def selection(self): sel = self.obj.CurrentSelection