diff options
author | pravindalve | 2020-06-10 20:46:30 +0530 |
---|---|---|
committer | GitHub | 2020-06-10 20:46:30 +0530 |
commit | 150b7bb892ed82521a5b00372e6a9f3eefce243f (patch) | |
tree | 0b98748057246911595792cde5a71f6ca929ae89 /src/main/python/utils/undo.py | |
parent | fd3ff2c037805a6539a9044bd9d26c3400768be8 (diff) | |
parent | cdd7ca2a45f5e0cfd14e20a3d1fff8a58d8be32d (diff) | |
download | Chemical-PFD-150b7bb892ed82521a5b00372e6a9f3eefce243f.tar.gz Chemical-PFD-150b7bb892ed82521a5b00372e6a9f3eefce243f.tar.bz2 Chemical-PFD-150b7bb892ed82521a5b00372e6a9f3eefce243f.zip |
Merge pull request #13 from Blakeinstein/master
Added newer svg files and landscape feature.
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 |