Code

Patch by Diederik for 168384. Tested by myself and others and works well, additionall...
[inkscape.git] / src / snapper.cpp
index 4a0bfb79127b831965278eb9b8fa260200e6a204..751b663e30f8393fbc83dc0d5f211a6fc892abe1 100644 (file)
@@ -9,7 +9,6 @@
  *  Released under GNU GPL, read the file 'COPYING' for more information.
  */
 
-#include "libnr/nr-values.h"
 #include "sp-namedview.h"
 #include "inkscape.h"
 #include "desktop.h"
  *  \param nv Named view.
  *  \param d Snap tolerance.
  */
-Inkscape::Snapper::Snapper(SnapManager *sm, Geom::Coord const t) :
+Inkscape::Snapper::Snapper(SnapManager *sm, Geom::Coord const /*t*/) :
        _snapmanager(sm),
-       _snap_enabled(true)
+       _snap_enabled(true),
+       _snap_visible_only(true)
 {
     g_assert(_snapmanager != NULL);
 }
@@ -35,6 +35,11 @@ void Inkscape::Snapper::setEnabled(bool s)
     _snap_enabled = s;
 }
 
+void Inkscape::Snapper::setSnapVisibleOnly(bool s)
+{
+    _snap_visible_only = s;
+}
+
 /*
   Local Variables:
   mode:c++