diff options
Diffstat (limited to 'src/main/python/utils/undo.py')
-rw-r--r-- | src/main/python/utils/undo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py index b060550..8426494 100644 --- a/src/main/python/utils/undo.py +++ b/src/main/python/utils/undo.py @@ -95,15 +95,15 @@ class resizeCommand(QUndoCommand): def __init__(self, new, canvas, widget, parent = None): super(resizeCommand, self).__init__(parent) self.parent = canvas - self.old = self.parent.canvasSize, self.parent.ppi + self.old = self.parent.canvasSize, self.parent.ppi, self.parent.landscape self.new = new self.widget = widget self.setText(f'Change canvas dimensions to {new[0]} at {new[1]} ppi') def undo(self): - self.parent.canvasSize, self.parent.ppi = self.old + self.parent.canvasSize, self.parent.ppi, self.parent.landscape = self.old self.widget.resizeHandler() def redo(self): - self.parent.canvasSize, self.parent.ppi = self.new + self.parent.canvasSize, self.parent.ppi, self.parent.landscape = self.new self.widget.resizeHandler()
\ No newline at end of file |