dompdf / php-svg-lib

SVG file parsing / rendering library
GNU Lesser General Public License v3.0
1.4k stars 77 forks source link

Update Path.php to avoid division by 0 error #108

Closed puzzledmonkey closed 9 months ago

puzzledmonkey commented 1 year ago

As per https://github.com/dompdf/php-svg-lib/issues/97

This pull request adds a small offset to $rx, $ry, $px, and $py to avoid the division by 0 error, as suggested by @ljadrbln

bsweeney commented 9 months ago

As noted in 97, this solution can produce undesirable results.