0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Fix rasterizer using wrong sizes

This commit is contained in:
Aitor 2024-03-08 13:34:13 +01:00 committed by Alonso Torres
parent d488d69abc
commit 1c29c73b8e

View file

@ -58,7 +58,7 @@
"Returns the adjusted size of an SVG."
[width height max]
(let [ratio (/ width height)]
(if (> width height)
(if (< width height)
[max (* max (/ 1 ratio))]
[(* max ratio) max])))