diff --git a/common/src/app/common/geom/shapes/path.cljc b/common/src/app/common/geom/shapes/path.cljc index 830e98e76..bce132b4b 100644 --- a/common/src/app/common/geom/shapes/path.cljc +++ b/common/src/app/common/geom/shapes/path.cljc @@ -983,10 +983,12 @@ (defn open-path? [shape] - - (and (= :path (:type shape)) - (not (->> shape - :content - (sp/close-subpaths) - (sp/get-subpaths) - (every? sp/is-closed?))))) + (let [svg? (contains? shape :svg-attrs) + ;; No close subpaths for svgs imported + maybe-close (if svg? identity sp/close-subpaths)] + (and (= :path (:type shape)) + (not (->> shape + :content + (maybe-close) + (sp/get-subpaths) + (every? sp/is-closed?))))))