From e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Thu, 28 Aug 2008 19:32:55 +0000 Subject: Modify the parameters required for setting up the SnapManager (bzr r6722) --- src/snap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/snap.h') diff --git a/src/snap.h b/src/snap.h index e4f9aaddf..02cee70ca 100644 --- a/src/snap.h +++ b/src/snap.h @@ -47,8 +47,8 @@ public: bool SomeSnapperMightSnap() const; - void setup(SPDesktop const *desktop_for_snapindicator = NULL, SPItem const *item_to_ignore = NULL, std::vector *unselected_nodes = NULL); - void setup(SPDesktop const *desktop_for_snapindicator, std::vector &items_to_ignore, std::vector *unselected_nodes = NULL); + void setup(SPDesktop const *desktop, bool snapindicator = true, SPItem const *item_to_ignore = NULL, std::vector *unselected_nodes = NULL); + void setup(SPDesktop const *desktop, bool snapindicator, std::vector &items_to_ignore, std::vector *unselected_nodes = NULL); // freeSnapReturnByRef() is preferred over freeSnap(), because it only returns a // point if snapping has occured (by overwriting p); otherwise p is untouched @@ -172,7 +172,8 @@ private: std::vector *_items_to_ignore; SPItem const *_item_to_ignore; - SPDesktop const *_desktop_for_snapindicator; + SPDesktop const *_desktop; + bool _snapindicator; std::vector *_unselected_nodes; Inkscape::SnappedPoint _snapTransformed(Inkscape::Snapper::PointType type, -- cgit v1.2.3