Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Nov 28, 2024
1 parent 4916031 commit de77de2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ class MergePaths : BottomUpOptimization {
for (current in paths.drop(1)) {
val previous = mergedPaths.last()

// Paths that intersect can cause problems with even odd rules and with
// merging paths of relative coordinates. For example, sometimes a path
// begins with a relative moveto for the sake of its implicit lineto commands
// (points after the first in the command), but the first moveto in a path
// is always considered relative to the origin—so absolute!
// Paths that intersect can cause problems with even odd rules and with transparency.
if (!haveSameAttributes(current, previous) ||
surveyor.findBoundingBox(previous.commands) intersects surveyor.findBoundingBox(current.commands)
) {
Expand Down

0 comments on commit de77de2

Please sign in to comment.