Code

fix node counting for "moveto"-only paths.
[inkscape.git] / src / snapper.cpp
index 2c646f4d64751bddf93023b6a303af95c9d05a8d..751b663e30f8393fbc83dc0d5f211a6fc892abe1 100644 (file)
@@ -20,7 +20,8 @@
  */
 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);
 }
@@ -34,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++