From 0a2477feea6e1df586b926b8482afbf79e2355e1 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sun, 7 Feb 2016 23:32:51 -0800 Subject: Sync 2Geom to commit 5ee51c1c4f2066faa3e2c82021fc92671ad44ba4 (bzr r14639) --- src/2geom/curve.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/2geom/curve.cpp') diff --git a/src/2geom/curve.cpp b/src/2geom/curve.cpp index 24c8be9f8..387a9180b 100644 --- a/src/2geom/curve.cpp +++ b/src/2geom/curve.cpp @@ -69,14 +69,14 @@ int Curve::winding(Point const &p) const // skip endpoint roots when they are local maxima on the Y axis // this follows the convention used in other winding routines, // i.e. that the bottommost coordinate is not part of the shape - bool ingore_0 = unitTangentAt(0)[Y] <= 0; + bool ignore_0 = unitTangentAt(0)[Y] <= 0; bool ignore_1 = unitTangentAt(1)[Y] >= 0; int wind = 0; for (std::size_t i = 0; i < ts.size(); ++i) { Coord t = ts[i]; //std::cout << t << std::endl; - if ((t == 0 && ingore_0) || (t == 1 && ignore_1)) continue; + if ((t == 0 && ignore_0) || (t == 1 && ignore_1)) continue; if (valueAt(t, X) > p[X]) { // root is ray intersection Point tangent = unitTangentAt(t); if (tangent[Y] > 0) { @@ -108,11 +108,7 @@ std::vector Curve::intersectSelf(Coord eps) const // Monotonic segments cannot have self-intersections. // Thus, we can split the curve at roots and intersect the portions. std::vector splits; -#if __cplusplus <= 199711L std::auto_ptr deriv(derivative()); -#else - std::unique_ptr deriv(derivative()); -#endif splits = deriv->roots(0, X); if (splits.empty()) { return result; -- cgit v1.2.3