From 9d1365da9d6ed6312e4f034df40aa64dec35c9e0 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 2 Jun 2009 04:36:17 +0000 Subject: When dragging the origin of a guide along that guide, we should use constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973) --- src/snap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/snap.h') diff --git a/src/snap.h b/src/snap.h index 5290ef081..ba920510f 100644 --- a/src/snap.h +++ b/src/snap.h @@ -23,6 +23,7 @@ #include "guide-snapper.h" #include "object-snapper.h" #include "snap-preferences.h" +//#include "sp-guide.h" class SPNamedView; @@ -98,7 +99,8 @@ public: bool first_point = true, Geom::OptRect const &bbox_to_snap = Geom::OptRect()) const; - void guideSnap(Geom::Point &p, Geom::Point const &guide_normal) const; + void guideFreeSnap(Geom::Point &p, Geom::Point const &guide_normal) const; + void guideConstrainedSnap(Geom::Point &p, SPGuide const &guideline) const; Inkscape::SnappedPoint freeSnapTranslation(Inkscape::SnapPreferences::PointType point_type, std::vector > const &p, -- cgit v1.2.3