mirror of
https://github.com/penpot/penpot.git
synced 2026-05-05 16:18:35 +00:00
🐛 Fix incorrect percent number parsing on reading svg
This commit is contained in:
parent
2950259f97
commit
3b929041f2
@ -980,7 +980,7 @@
|
||||
(fix-percent-attr-numeric [_ attr-val]
|
||||
(let [is-percent? (str/ends-with? attr-val "%")]
|
||||
(if is-percent?
|
||||
(str (let [attr-num (d/parse-double attr-val)]
|
||||
(str (let [attr-num (d/parse-double (str/rtrim attr-val "%"))]
|
||||
(/ attr-num 100)))
|
||||
attr-val)))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user