diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-03-13 20:15:31 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-03-13 20:15:31 +0000 |
| commit | 66a5d8abdc01c524d02064b537d7b0d167b15dda (patch) | |
| tree | 0101736dd4665e61682f965fc76d54c60779ceb7 /src/line-snapper.cpp | |
| parent | remove desktop-affine.h and refactor sp_desktop_dt2doc_* calls (diff) | |
| download | inkscape-66a5d8abdc01c524d02064b537d7b0d167b15dda.tar.gz inkscape-66a5d8abdc01c524d02064b537d7b0d167b15dda.zip | |
* Implement constrained snapping of knots
* Implement snapping of the rectangle's radius handles
* Line snappers: set the snap target in the derived class instead of in findBestSnap()
(bzr r7479)
Diffstat (limited to 'src/line-snapper.cpp')
| -rw-r--r-- | src/line-snapper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index d751993dd..72a6cc33d 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -51,8 +51,7 @@ void Inkscape::LineSnapper::freeSnap(SnappedConstraints &sc, Geom::Coord const dist = Geom::L2(p_proj - p); //Store any line that's within snapping range if (dist < getSnapperTolerance()) { - _addSnappedLine(sc, p_proj, dist, source_type, Inkscape::SNAPTARGET_UNDEFINED, i->first, i->second); - // We don't know if we're snapping to grids or guides here; therefore the snap target type will be set in findBestSnap() + _addSnappedLine(sc, p_proj, dist, source_type, i->first, i->second); // std::cout << " -> distance = " << dist; } // std::cout << std::endl; @@ -100,7 +99,7 @@ void Inkscape::LineSnapper::constrainedSnap(SnappedConstraints &sc, // This snappoint is therefore fully constrained, so there's no need // to look for additional intersections; just return the snapped point // and forget about the line - sc.points.push_back(SnappedPoint(t, source_type, Inkscape::SNAPTARGET_UNDEFINED, dist, getSnapperTolerance(), getSnapperAlwaysSnap(), true)); + _addSnappedPoint(sc, t, dist, source_type); } } } |
