src/editmodes/magicWandMode.h

changeset 1031
55c0d3beea0d
parent 1014
f0a8ecb6a357
child 1072
9ce9496427f2
--- a/src/editmodes/magicWandMode.h	Wed Feb 17 03:24:07 2016 +0200
+++ b/src/editmodes/magicWandMode.h	Wed Feb 17 19:54:21 2016 +0200
@@ -24,7 +24,7 @@
 
 class MagicWandMode : public AbstractSelectMode
 {
-	QMap<Vertex, QVector<LDObject*>> m_vertices;
+	QMap<Vertex, QSet<LDObject*>> m_vertices;
 	QVector<LDObject*> m_selection;
 
 	DEFINE_CLASS (MagicWandMode, AbstractSelectMode)
@@ -45,5 +45,5 @@
 	virtual bool mouseReleased (MouseEventData const& data) override;
 
 private:
-	void fillBoundaries (LDObject* obj, QVector<BoundaryType>& boundaries, QVector<LDObject*>& candidates);
+	void fillBoundaries (LDObject* obj, QVector<BoundaryType>& boundaries, QSet<LDObject *> &candidates);
 };

mercurial