mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
🐛 Fix problem with strokes and texts
This commit is contained in:
parent
e188ae732a
commit
10e981d034
1 changed files with 9 additions and 3 deletions
|
@ -332,9 +332,15 @@
|
|||
(obj/set! props "fill" (str "url(#fill-0-" render-id ")"))
|
||||
|
||||
(and last-stroke? one-fill?)
|
||||
(obj/merge!
|
||||
props
|
||||
(attrs/extract-fill-attrs (get-in shape [:fills 0]) render-id 0))
|
||||
(let [fill-props
|
||||
(attrs/extract-fill-attrs (get-in shape [:fills 0]) render-id 0)
|
||||
|
||||
style (-> (obj/get props "style")
|
||||
(obj/clone)
|
||||
(obj/merge! (obj/get fill-props "style")))]
|
||||
(cond-> (obj/merge! props fill-props)
|
||||
(some? style)
|
||||
(obj/set! "style" style)))
|
||||
|
||||
:else
|
||||
(-> props
|
||||
|
|
Loading…
Add table
Reference in a new issue