summaryrefslogtreecommitdiffstats
path: root/src/object-edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object-edit.cpp')
-rw-r--r--src/object-edit.cpp3
1 files changed, 2 insertions, 1 deletions
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 <style.h>
#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);
}