Code

Connector tool: make connectors avoid the convex hull of shapes.
[inkscape.git] / src / sp-item-update-cns.cpp
index e1857dcca21383dc47f5f5889d7a74f4d38c80ad..bebd6502199dab5b9939e014c976d9191a079875 100644 (file)
@@ -3,13 +3,14 @@
 #include "sp-guide-constraint.h"
 #include <sp-guide.h>
 #include <sp-item.h>
+#include <algorithm>
 using std::find;
 using std::vector;
 
 void sp_item_update_cns(SPItem &item, SPDesktop const &desktop)
 {
-    vector<NR::Point> snappoints;
-    sp_item_snappoints(&item, SnapPointsIter(snappoints));
+    SnapPointsWithType snappoints;
+    sp_item_snappoints(&item, false, snappoints, NULL);
     /* TODO: Implement the ordering. */
     vector<SPGuideConstraint> found_cns;
     satisfied_guide_cns(desktop, snappoints, found_cns);