summaryrefslogtreecommitdiffstats
path: root/src/context-fns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context-fns.cpp')
-rw-r--r--src/context-fns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/context-fns.cpp b/src/context-fns.cpp
index 6c36e780f..5db98ec16 100644
--- a/src/context-fns.cpp
+++ b/src/context-fns.cpp
@@ -7,6 +7,7 @@
#include "snap.h"
#include "desktop-affine.h"
#include "event-context.h"
+#include "sp-namedview.h"
/* FIXME: could probably use a template here */
@@ -76,7 +77,7 @@ NR::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item,
bool const shift = state & GDK_SHIFT_MASK;
bool const control = state & GDK_CONTROL_MASK;
- SnapManager const m(desktop->namedview);
+ SnapManager const &m = desktop->namedview->snap_manager;
if (control) {