Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / sp-item-update-cns.cpp
index e1857dcca21383dc47f5f5889d7a74f4d38c80ad..f7329bd45a2096907bba6349b653cbb92e1c734f 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));
+    std::vector<Geom::Point> snappoints;
+    sp_item_snappoints(&item, SnapPointsIter(snappoints), NULL);
     /* TODO: Implement the ordering. */
     vector<SPGuideConstraint> found_cns;
     satisfied_guide_cns(desktop, snappoints, found_cns);