From 9d9bb836a1b83fab5bc408ffd7d4305e0d8b965a Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Wed, 3 Jan 2018 22:32:37 +0100 Subject: fixed jumping when nodes are added --- tikzit/src/gui/undocommands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tikzit/src/gui/undocommands.h') diff --git a/tikzit/src/gui/undocommands.h b/tikzit/src/gui/undocommands.h index c1b4910..ffff876 100644 --- a/tikzit/src/gui/undocommands.h +++ b/tikzit/src/gui/undocommands.h @@ -67,12 +67,14 @@ private: class AddNodeCommand : public QUndoCommand { public: - explicit AddNodeCommand(TikzScene *scene, Node *node); + explicit AddNodeCommand(TikzScene *scene, Node *node, QRectF newBounds); void undo() override; void redo() override; private: TikzScene *_scene; Node *_node; + QRectF _oldBounds; + QRectF _newBounds; }; #endif // UNDOCOMMANDS_H -- cgit v1.2.3