diff options
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r-- | src/gui/undocommands.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h index 00b9a40..c10eecc 100644 --- a/src/gui/undocommands.h +++ b/src/gui/undocommands.h @@ -275,15 +275,15 @@ class SplitPathCommand : public GraphUpdateCommand { public: explicit SplitPathCommand(TikzScene *scene, - const QVector<Path*> &paths, + const QSet<Path*> &paths, QUndoCommand *parent = nullptr); void undo() override; void redo() override; private: - QVector<Path*> _paths; + QSet<Path*> _paths; // keep a copy of the edge lists so they can be added back to each path in undo() - QVector<QVector<Edge*>> _edgeLists; + QMap<Path*,QVector<Edge*>> _edgeLists; }; #endif // UNDOCOMMANDS_H |