diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-02-15 20:30:42 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-02-15 20:30:42 +0000 |
| commit | 32035d39b6b1138500eee1f625e40fe52c29bf26 (patch) | |
| tree | eb93df4c2799563e5eab32e06075f703e56443f5 /src/snapped-curve.cpp | |
| parent | Zero page size for GTK spinbutton change (diff) | |
| download | inkscape-32035d39b6b1138500eee1f625e40fe52c29bf26.tar.gz inkscape-32035d39b6b1138500eee1f625e40fe52c29bf26.zip | |
After snapping, show a tooltip together with the snap indicator
(bzr r7296)
Diffstat (limited to 'src/snapped-curve.cpp')
| -rw-r--r-- | src/snapped-curve.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 20d7aea33..34cc4dad2 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -14,7 +14,7 @@ #include <2geom/path-intersection.h> #include <libnr/nr-convert2geom.h> -Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve) +Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, Geom::Coord const &snapped_tolerance, bool const &always_snap, bool const &fully_constrained, Geom::Curve const *curve, SnapTargetType target) { _distance = snapped_distance; _tolerance = std::max(snapped_tolerance, 1.0); @@ -26,6 +26,7 @@ Inkscape::SnappedCurve::SnappedCurve(Geom::Point const &snapped_point, Geom::Coo _point = snapped_point; _at_intersection = false; _fully_constrained = fully_constrained; + _target = target; } Inkscape::SnappedCurve::SnappedCurve() @@ -40,6 +41,7 @@ Inkscape::SnappedCurve::SnappedCurve() _point = Geom::Point(0,0); _at_intersection = false; _fully_constrained = false; + _target = SNAPTARGET_UNDEFINED; } Inkscape::SnappedCurve::~SnappedCurve() |
