--- a/src/ldObject.cpp Wed Feb 17 03:24:07 2016 +0200 +++ b/src/ldObject.cpp Wed Feb 17 19:54:21 2016 +0200 @@ -1166,13 +1166,13 @@ } }; -void LDObject::getVertices (QVector<Vertex>& verts) const +void LDObject::getVertices (QSet<Vertex>& verts) const { for (int i = 0; i < numVertices(); ++i) - verts << vertex (i); + verts.insert(vertex(i)); } -void LDSubfileReference::getVertices (QVector<Vertex>& verts) const +void LDSubfileReference::getVertices (QSet<Vertex>& verts) const { - verts << fileInfo()->inlineVertices(); + verts.unite(fileInfo()->inlineVertices()); } \ No newline at end of file