Code

Move all of the snapper code to 2geom
[inkscape.git] / src / knot-holder-entity.cpp
index 99aa67052a4448f37bf2aa8cf24936e611dccae6..9d890e2fc42476ad403a92a3501d74b04941c0c4 100644 (file)
@@ -90,11 +90,11 @@ Geom::Point
 KnotHolderEntity::snap_knot_position(Geom::Point const &p)
 {
     Geom::Matrix const i2d (sp_item_i2d_affine(item));
-    NR::Point s = p * i2d;
+    Geom::Point s = p * i2d;
     SnapManager &m = desktop->namedview->snap_manager;
     m.setup(desktop, item);
     m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, s);
-    return Geom::Point(s) * i2d.inverse();
+    return s * i2d.inverse();
 }