summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/undocommands.cpp')
-rw-r--r--src/gui/undocommands.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/undocommands.cpp b/src/gui/undocommands.cpp
index 5525cb7..c8221fe 100644
--- a/src/gui/undocommands.cpp
+++ b/src/gui/undocommands.cpp
@@ -284,6 +284,7 @@ void ApplyStyleToNodesCommand::undo()
n->setStyleName(_oldStyles[n]);
n->attachStyle();
}
+ _scene->refreshAdjacentEdges(_oldStyles.keys());
GraphUpdateCommand::undo();
}
@@ -294,10 +295,13 @@ void ApplyStyleToNodesCommand::redo()
n->setStyleName(_style);
n->attachStyle();
}
+ _scene->refreshAdjacentEdges(_oldStyles.keys());
+
GraphUpdateCommand::redo();
}
-ApplyStyleToEdgesCommand::ApplyStyleToEdgesCommand(TikzScene *scene, QString style, QUndoCommand *parent) :
+
+ApplyStyleToEdgesCommand::ApplyStyleToEdgesCommand(TikzScene * scene, QString style, QUndoCommand * parent) :
GraphUpdateCommand(scene, parent), _style(style), _oldStyles()
{
foreach(QGraphicsItem *it, scene->selectedItems()) {