mirror of
https://github.com/penpot/penpot.git
synced 2025-02-24 07:46:13 -05:00
Merge pull request #1937 from penpot/superalex-fix-add-stroke-for-text-with-shortcut
🐛 Fix adding string for texts with shortcut
This commit is contained in:
commit
494e2df49f
1 changed files with 4 additions and 1 deletions
|
@ -279,7 +279,10 @@
|
||||||
|
|
||||||
:always
|
:always
|
||||||
(d/without-nils))]
|
(d/without-nils))]
|
||||||
(assoc-in shape [:strokes index] new-attrs)))))))))
|
(-> shape
|
||||||
|
(cond-> (not (contains? shape :strokes))
|
||||||
|
(assoc :strokes []))
|
||||||
|
(assoc-in [:strokes index] new-attrs))))))))))
|
||||||
|
|
||||||
(defn add-stroke
|
(defn add-stroke
|
||||||
[ids stroke]
|
[ids stroke]
|
||||||
|
|
Loading…
Add table
Reference in a new issue