From e26f9e4a710495b480e7d76ce41b4bb08ff0a661 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 3 Nov 2021 16:41:03 +0100 Subject: [PATCH] :bug: Fix problem with arrow lines --- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 5 +++-- 1 file changed, 3 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 35d7691de..a3197e0c9 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -69,6 +69,7 @@ stroke-opacity (when-not (:stroke-color-gradient shape) (:stroke-opacity shape))] + [:* (when (or (= cap-start :line-arrow) (= cap-end :line-arrow)) [:marker {:id (str marker-id-prefix "-line-arrow") @@ -160,8 +161,8 @@ (mf/defc stroke-defs [{:keys [shape render-id]}] - (when (or (not= (:type shape) :path) - (not (gsh/open-path? shape))) + (when (and (= (:type shape) :path) + (gsh/open-path? shape)) (cond (and (= :inner (:stroke-alignment shape :center)) (> (:stroke-width shape 0) 0))