Skip to content

Commit

Permalink
Fix svg#1855 (probably)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Nov 28, 2023
1 parent 86d5040 commit 9c895a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/convertPathData.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,15 +828,12 @@ function filters(

item.command = command;
item.args = data;

prev = item;
} else {
// z resets coordinates
relSubpoint[0] = pathBase[0];
relSubpoint[1] = pathBase[1];
// @ts-ignore
if (prev.command === 'Z' || prev.command === 'z') return false;
prev = item;
}
if (
(command === 'Z' || command === 'z') &&
Expand All @@ -849,6 +846,7 @@ function filters(
)
return false;

prev = item;
return true;
});

Expand Down

0 comments on commit 9c895a1

Please sign in to comment.