From e182d3546498c8c865fb155481890c5571430c6f Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 14 Feb 2012 21:56:34 +0100 Subject: 1) Add checkboxes for perpendicular and tangential snapping to the document properties dialog (on the snap tab) 2) Newly created guides (dragged off the ruler) will take on the angle of the curve that's being snapped to (either perpendicularly or tangentialy, depending of the settings in the document properties dialog) (bzr r10975) --- src/snapped-curve.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/snapped-curve.cpp') diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 8fdf1d46f..b332fa8c1 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -12,7 +12,7 @@ #include <2geom/crossing.h> #include <2geom/path-intersection.h> -Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, int num_path, int num_segm, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapSourceType source, long source_num, SnapTargetType target, Geom::OptRect target_bbox) +Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, Geom::Point const &tangent, int num_path, int num_segm, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapSourceType source, long source_num, SnapTargetType target, Geom::OptRect target_bbox) { _num_path = num_path; _num_segm = num_segm; @@ -24,6 +24,7 @@ Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, int num_p _second_tolerance = 1; _second_always_snap = false; _point = snapped_point; + _tangent = tangent; _at_intersection = false; _fully_constrained = fully_constrained; _source = source; @@ -44,6 +45,7 @@ Inkscape::SnappedCurve::SnappedCurve() _second_tolerance = 1; _second_always_snap = false; _point = Geom::Point(0,0); + _tangent = Geom::Point(0,0); _at_intersection = false; _fully_constrained = false; _source = SNAPSOURCE_UNDEFINED; -- cgit v1.2.3