From 91249bc89253a1bd0668a6ee556a3afec424bdd2 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 29 Mar 2022 10:33:06 +0200 Subject: [PATCH] :bug: Weird stroke behaviour on duplicate --- frontend/src/app/main/data/workspace/colors.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/data/workspace/colors.cljs b/frontend/src/app/main/data/workspace/colors.cljs index 97deb5a06..4a7358d02 100644 --- a/frontend/src/app/main/data/workspace/colors.cljs +++ b/frontend/src/app/main/data/workspace/colors.cljs @@ -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