diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2020-04-18 15:30:31 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2020-04-18 15:30:31 +0100 |
commit | ef07176e5c5c8e2aa9ea5a380000302234f2934c (patch) | |
tree | db68c161dc6efec268b84e4c4209922294b3c718 /src/gui/undocommands.h | |
parent | 08ce6c91fd37c904362a5ec6f054bcd3ee061b74 (diff) |
deleting works correctly with paths
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 |