Some more code fixes.

One was breaking unit tests.
This commit is contained in:
Jürg Lehni 2015-09-09 08:15:43 +02:00
parent 155442e706
commit abf70378fe
2 changed files with 3 additions and 3 deletions

View file

@ -1328,7 +1328,7 @@ new function() { // Scope for intersection using bezier fat-line clipping
if (t2 == null)
t2 = Curve.getParameterOf(v2, p2.x, p2.y);
loc = new CurveLocation(
c1, t1, p1 || Curve.getPoint(v1, t1),
c1, t1, p1 || Curve.getPoint(v1, t1),
c2, t2, p2 || Curve.getPoint(v2, t2));
if (param.adjust)
param.adjust(loc);

View file

@ -104,8 +104,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
// Self intersecting is found by dividing the curve in two
// and and then applying the normal curve intersection code.
var parts = Curve.subdivide(values1);
Curve._getIntersections(
parts[0], parts[1], curve1, curve1, locations, {
Curve._getIntersections(parts[0], parts[1], curve1, curve1,
locations, {
// Only possible if there is only one curve:
startConnected: length1 === 1,
// After splitting, the end is always connected: