mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Fix rasterizer using wrong sizes
This commit is contained in:
parent
d488d69abc
commit
1c29c73b8e
@ -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])))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user