Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / sp-item-update-cns.cpp
index e1857dcca21383dc47f5f5889d7a74f4d38c80ad..315d0910812c8f007a50489c158158abb303a462 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<Inkscape::SnapCandidatePoint> snappoints;
+    item.getSnappoints(snappoints, NULL);
     /* TODO: Implement the ordering. */
     vector<SPGuideConstraint> found_cns;
     satisfied_guide_cns(desktop, snappoints, found_cns);
@@ -42,4 +43,4 @@ void sp_item_update_cns(SPItem &item, SPDesktop const &desktop)
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :