deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
307 stars 79 forks source link

Fix quadratic to cubic path conversion, add test #372

Closed stefanw closed 1 year ago

stefanw commented 1 year ago

I tried to fix #364 in #365 but while I had the right idea, the PR did not actually fix the problem, sorry!

I accidentally used the cubic control points to store the last quadratic control points because the var x1, x2 were overwritten by the conversion call. I moved the storing of the last quadratic control point to before the conversion call. This time a test is included to make sure this works.

Fixes #364 properly.