From 10e981d034498483972981db5a4d026a70555f90 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 14 Mar 2022 17:21:26 +0100 Subject: [PATCH] :bug: Fix problem with strokes and texts --- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index fe730f375..9df874822 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -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