diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 18:26:21 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 18:26:21 +0200 |
commit | 7f074813bdb2bfca2f7a9933e7c922132197aaba (patch) | |
tree | 7fad7f9c97765a96d9a820692b25a94c11642269 /src/gui/undocommands.cpp | |
parent | a287cd28623e8f25ead557b069a10022fae68747 (diff) |
fixed .center bug when parsing tikz
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 e2502f1..9c52bf3 100644 --- a/src/gui/undocommands.cpp +++ b/src/gui/undocommands.cpp @@ -421,12 +421,16 @@ ReplaceGraphCommand::ReplaceGraphCommand(TikzScene *scene, Graph *oldGraph, Grap void ReplaceGraphCommand::undo() { + foreach (Node *n, _oldGraph->nodes()) n->attachStyle(); + foreach (Edge *e, _oldGraph->edges()) e->updateControls(); _scene->tikzDocument()->setGraph(_oldGraph); _scene->graphReplaced(); } void ReplaceGraphCommand::redo() { + foreach (Node *n, _newGraph->nodes()) n->attachStyle(); + foreach (Edge *e, _newGraph->edges()) e->updateControls(); _scene->tikzDocument()->setGraph(_newGraph); _scene->graphReplaced(); } |