mirror of
https://github.com/penpot/penpot.git
synced 2025-05-07 00:15:54 +02:00
🔧 Do not try to set svg path attrs if none
This commit is contained in:
parent
d55e55ebcc
commit
43f77376b6
1 changed files with 2 additions and 3 deletions
|
@ -349,8 +349,6 @@
|
||||||
(h/call wasm/internal-module "_add_shape_stroke_solid_fill" rgba)))))
|
(h/call wasm/internal-module "_add_shape_stroke_solid_fill" rgba)))))
|
||||||
strokes))
|
strokes))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn set-shape-path-attrs
|
(defn set-shape-path-attrs
|
||||||
[attrs]
|
[attrs]
|
||||||
(let [style (:style attrs)
|
(let [style (:style attrs)
|
||||||
|
@ -754,7 +752,8 @@
|
||||||
(when (and (some? content)
|
(when (and (some? content)
|
||||||
(or (= type :path)
|
(or (= type :path)
|
||||||
(= type :bool)))
|
(= type :bool)))
|
||||||
(set-shape-path-attrs svg-attrs)
|
(when (some? svg-attrs)
|
||||||
|
(set-shape-path-attrs svg-attrs))
|
||||||
(set-shape-path-content content))
|
(set-shape-path-content content))
|
||||||
(when (and (some? content) (= type :svg-raw))
|
(when (and (some? content) (= type :svg-raw))
|
||||||
(set-shape-svg-raw-content (get-static-markup shape)))
|
(set-shape-svg-raw-content (get-static-markup shape)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue