diff --git a/plugins/_transforms.js b/plugins/_transforms.js index e545095fc..ed21c3ed6 100644 --- a/plugins/_transforms.js +++ b/plugins/_transforms.js @@ -504,7 +504,7 @@ const transformToMatrix = (transform) => { transform.data[0], 0, 0, - transform.data[1] || transform.data[0], + transform.data[1] ?? transform.data[0], 0, 0, ]; diff --git a/test/plugins/convertTransform.15.svg.txt b/test/plugins/convertTransform.15.svg.txt new file mode 100644 index 000000000..dada156cb --- /dev/null +++ b/test/plugins/convertTransform.15.svg.txt @@ -0,0 +1,15 @@ +Make sure scale(n,0) is handled correctly. + +=== + + + + + + +@@@ + + + + +