summaryrefslogtreecommitdiffstats
path: root/src/2geom/curve.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-03-14 16:37:50 +0000
committerJabiertxof <jtx@jtx.marker.es>2016-03-14 16:37:50 +0000
commitb8d22beef5345210ad27cdc2685083aeae6f8f3b (patch)
treed69b8bfd19d3627a8425a1b265c2abf229b05354 /src/2geom/curve.cpp
parentfixes for update to trunk (diff)
parent"Relative to" option for node alignment. (diff)
downloadinkscape-b8d22beef5345210ad27cdc2685083aeae6f8f3b.tar.gz
inkscape-b8d22beef5345210ad27cdc2685083aeae6f8f3b.zip
update to trunk
(bzr r13708.1.39)
Diffstat (limited to 'src/2geom/curve.cpp')
-rw-r--r--src/2geom/curve.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/curve.cpp b/src/2geom/curve.cpp
index b45228514..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) {