diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-11-03 18:11:46 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-11-03 18:11:46 +0000 |
| commit | 8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11 (patch) | |
| tree | 4d0150783a2f04376bb1b616a249a618581717c4 /src/line-snapper.cpp | |
| parent | add destructor to LayerManager that disconnects it signals. see bug: [ 172087... (diff) | |
| download | inkscape-8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11.tar.gz inkscape-8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11.zip | |
Oops, don't use tabs! (replace tabs by 4 spaces)
(bzr r4020)
Diffstat (limited to 'src/line-snapper.cpp')
| -rw-r--r-- | src/line-snapper.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index 3b91fb015..f8efbed49 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -10,10 +10,10 @@ Inkscape::LineSnapper::LineSnapper(SPNamedView const *nv, NR::Coord const d) : S } void Inkscape::LineSnapper::_doFreeSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, - NR::Point const &p, - bool const &f, - std::vector<NR::Point> &points_to_snap, + Inkscape::Snapper::PointType const &t, + NR::Point const &p, + bool const &f, + std::vector<NR::Point> &points_to_snap, std::list<SPItem const *> const &it) const { /* Snap along x (i.e. to vertical lines) */ @@ -24,11 +24,11 @@ void Inkscape::LineSnapper::_doFreeSnap(SnappedConstraints &sc, } void Inkscape::LineSnapper::_doConstrainedSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, - NR::Point const &p, + Inkscape::Snapper::PointType const &t, + NR::Point const &p, bool const &f, - std::vector<NR::Point> &points_to_snap, - ConstraintLine const &c, + std::vector<NR::Point> &points_to_snap, + ConstraintLine const &c, std::list<SPItem const *> const &it) const { @@ -50,7 +50,7 @@ void Inkscape::LineSnapper::_doConstrainedSnap(SnappedConstraints &sc, /* Try to intersect this line with the target line */ NR::Point t = NR::Point(NR_HUGE, NR_HUGE); IntersectorKind const k = intersector_line_intersection(n, q, component_vectors[i->first], i->second, t); - + if (k == INTERSECTS) { const NR::Coord dist = L2(t - p); //Store any line that's within snapping range |
