diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-04-17 11:03:24 +0300 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-04-17 11:03:24 +0300 |
commit | 8ac7248513189d82fe5bdf90c0d7fc15f2e718ce (patch) | |
tree | a537036afd281726cad73b1622935d3084c68f15 /src/gui/undocommands.cpp | |
parent | 34b60b77d3f9830ddb6a0107bd65aa3c79701305 (diff) |
fixed bounding box bug
Diffstat (limited to 'src/gui/undocommands.cpp')
-rw-r--r-- | src/gui/undocommands.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/undocommands.cpp b/src/gui/undocommands.cpp index daa2fee..baa8c0e 100644 --- a/src/gui/undocommands.cpp +++ b/src/gui/undocommands.cpp @@ -341,6 +341,8 @@ void ChangeLabelCommand::undo() { foreach (Node *n, _oldLabels.keys()) { n->setLabel(_oldLabels[n]); + NodeItem *ni = _scene->nodeItems()[n]; + if (ni != 0) ni->updateBounds(); } GraphUpdateCommand::undo(); @@ -350,6 +352,8 @@ void ChangeLabelCommand::redo() { foreach (Node *n, _oldLabels.keys()) { n->setLabel(_newLabel); + NodeItem *ni = _scene->nodeItems()[n]; + if (ni != 0) ni->updateBounds(); } GraphUpdateCommand::redo(); |