Some minor clean-ups for 55cf0bc1c7.

This commit is contained in:
Jürg Lehni 2016-01-03 01:13:03 +01:00
parent 55cf0bc1c7
commit 26761f17a1

View file

@ -527,7 +527,7 @@ PathItem.inject(new function() {
start, start,
otherStart, otherStart,
operator = operators[operation], operator = operators[operation],
// Adjust winding contributions for specific operations on overlaps: // Adjust winding contributions for unite operation on overlaps:
overlapWinding = operation === 'unite' && { 1: 2 }; overlapWinding = operation === 'unite' && { 1: 2 };
function isValid(seg, adjusted) { function isValid(seg, adjusted) {
@ -543,7 +543,7 @@ PathItem.inject(new function() {
} }
function isStart(seg) { function isStart(seg) {
return seg && (seg === start || seg === otherStart); return seg === start || seg === otherStart;
} }
// If there are multiple possible intersections, find the one that's // If there are multiple possible intersections, find the one that's