From d6820a69d429f7161458bbbfc6f28814ae8282dc Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 4 Mar 2022 07:56:47 +0100 Subject: [PATCH] :bug: Fixing texts with multiple strokes and fills --- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 1 - frontend/src/app/main/ui/shapes/text/svg_text.cljs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index 3eaca2883..fe730f375 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -329,7 +329,6 @@ props (cond (and last-stroke? url-fill?) - ;; TODO: check this zero (obj/set! props "fill" (str "url(#fill-0-" render-id ")")) (and last-stroke? one-fill?) diff --git a/frontend/src/app/main/ui/shapes/text/svg_text.cljs b/frontend/src/app/main/ui/shapes/text/svg_text.cljs index 2c436ed6c..02ecf4f21 100644 --- a/frontend/src/app/main/ui/shapes/text/svg_text.cljs +++ b/frontend/src/app/main/ui/shapes/text/svg_text.cljs @@ -59,7 +59,8 @@ :fontStyle (:font-style data) :direction (if (:rtl data) "rtl" "ltr") :whiteSpace "pre"} - (obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})] + (obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))}) + shape (assoc shape :fills (:fills data))] [:& shape-custom-strokes {:shape shape} [:> :text props (:text data)]]))]]))