X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fobject-edit.cpp;h=2eabdd7bd480acd97a64789f9de6c635f38eb81d;hb=8e75b1268dabafcba82b82a5e5d51c78b300a010;hp=d96585509ca7882b059e4f0c883b21702ce0c062;hpb=f951374eef04129c6a0d213e7ab4d9ed2095ca69;p=inkscape.git diff --git a/src/object-edit.cpp b/src/object-edit.cpp index d96585509..2eabdd7bd 100644 --- a/src/object-edit.cpp +++ b/src/object-edit.cpp @@ -29,6 +29,7 @@ #include "desktop-affine.h" #include #include "desktop.h" +#include "sp-namedview.h" #include "sp-pattern.h" #include "sp-path.h" @@ -334,7 +335,7 @@ static NR::Point rect_snap_knot_position(NR::Point const &p) { SPDesktop const *desktop = inkscape_active_desktop(); NR::Point s = sp_desktop_dt2root_xy_point(desktop, p); - SnapManager const m(desktop->namedview); + SnapManager const &m = desktop->namedview->snap_manager; s = m.freeSnap(Inkscape::Snapper::BBOX_POINT | Inkscape::Snapper::SNAP_POINT, s, NULL).getPoint(); return sp_desktop_root2dt_xy_point(desktop, s); }