0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-01 09:31:26 -05:00

🐛 Weird stroke behaviour on duplicate

This commit is contained in:
Alejandro Alonso 2022-03-29 10:33:06 +02:00 committed by Andrés Moya
parent 369eab3b5f
commit 91249bc892

View file

@ -259,10 +259,7 @@
(assoc :stroke-color-gradient (:gradient attrs))
(contains? attrs :opacity)
(assoc :stroke-opacity (:opacity attrs))
:always
(d/without-nils))
(assoc :stroke-opacity (:opacity attrs)))
attrs (merge attrs color-attrs)]
@ -276,7 +273,10 @@
(assoc :stroke-style :solid)
(not (contains? new-attrs :stroke-alignment))
(assoc :stroke-alignment :center))]
(assoc :stroke-alignment :center)
:always
(d/without-nils))]
(assoc-in shape [:strokes index] new-attrs)))))))))
(defn add-stroke