Improve horizontal check for sampling points in propagateWinding()

Relates to #875, needs more testing.
This commit is contained in:
Jürg Lehni 2015-12-29 23:16:20 +01:00
parent 3035e1d445
commit 943c4bba91

View file

@ -487,8 +487,9 @@ PathItem.inject(new function() {
var curve = node.curve,
path = curve._path,
parent = path._parent,
pt = curve.getPointAt(length),
hor = curve.isHorizontal();
t = curve.getParameterAt(length),
pt = curve.getPointAt(t, true),
hor = Numerical.isZero(curve.getTangentAt(t, true).y);
if (parent instanceof CompoundPath)
path = parent;
// While subtracting, we need to omit this curve if this