Skip to content

Commit

Permalink
Merge pull request #76 from Enlitem/main
Browse files Browse the repository at this point in the history
fix: correct condition check for 'y2' in ROUND function
  • Loading branch information
nfroidure authored Aug 27, 2024
2 parents 73bedd6 + 9f332a6 commit b0e8781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SVGPathDataTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function ROUND(roundVal = 1e13) {
if ('x2' in command && 'undefined' !== typeof command.x2) {
command.x2 = rf(command.x2);
}
if ('x2' in command && 'undefined' !== typeof command.y2) {
if ('y2' in command && 'undefined' !== typeof command.y2) {
command.y2 = rf(command.y2);
}

Expand Down

0 comments on commit b0e8781

Please sign in to comment.