summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-04-15 12:11:19 +0300
committerAleks Kissinger <aleks0@gmail.com>2018-04-15 12:11:19 +0300
commit34b60b77d3f9830ddb6a0107bd65aa3c79701305 (patch)
tree9a3bf10d31c199017249437e0f6880b3803addb9 /src/gui/undocommands.h
parent10d739ce2ac904501a6f78b127f91c944a774a18 (diff)
fixed crash on paste
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r--src/gui/undocommands.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h
index a0abb26..3f74afb 100644
--- a/src/gui/undocommands.h
+++ b/src/gui/undocommands.h
@@ -13,6 +13,7 @@
#include "tikzscene.h"
#include <QUndoCommand>
+#include <QSet>
class GraphUpdateCommand : public QUndoCommand {
public:
@@ -127,7 +128,8 @@ public:
void redo() override;
private:
Graph *_graph;
- QList<QGraphicsItem*> _oldSelection;
+ QSet<Node*> _oldSelectedNodes;
+ QSet<Edge*> _oldSelectedEdges;
};
class ChangeLabelCommand : public GraphUpdateCommand