0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 01:28:30 -05:00

🐛 Fix text exportation on svg with colors.

This commit is contained in:
Andrey Antukh 2020-12-03 19:22:07 +01:00 committed by Alonso Torres
parent 43bd98151a
commit 9b8ec1ac02

View file

@ -78,7 +78,7 @@
[shape] [shape]
(let [colors (->> shape :content (let [colors (->> shape :content
(tree-seq map? :children) (tree-seq map? :children)
(into #{} (comp (map :fill) (filter string?))))] (into #{} (comp (map :fill-color) (filter string?))))]
(if (empty? colors) (if (empty? colors)
"#000000" "#000000"
(apply str (interpose "," colors))))) (apply str (interpose "," colors)))))