mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 00:01:51 -05:00
🐛 Fix rasterizer using wrong sizes
This commit is contained in:
parent
d488d69abc
commit
1c29c73b8e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@
|
||||||
"Returns the adjusted size of an SVG."
|
"Returns the adjusted size of an SVG."
|
||||||
[width height max]
|
[width height max]
|
||||||
(let [ratio (/ width height)]
|
(let [ratio (/ width height)]
|
||||||
(if (> width height)
|
(if (< width height)
|
||||||
[max (* max (/ 1 ratio))]
|
[max (* max (/ 1 ratio))]
|
||||||
[(* max ratio) max])))
|
[(* max ratio) max])))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue