index e1857dcca21383dc47f5f5889d7a74f4d38c80ad..315d0910812c8f007a50489c158158abb303a462 100644 (file)
#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);
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 :