Merge pull request #3123 from penpot/alotor-hotfix

Hotfix page hangs
This commit is contained in:
Alejandro 2023-04-11 06:50:30 +02:00 committed by GitHub
commit 3233c78130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -983,10 +983,12 @@
(defn open-path? (defn open-path?
[shape] [shape]
(let [svg? (contains? shape :svg-attrs)
(and (= :path (:type shape)) ;; No close subpaths for svgs imported
(not (->> shape maybe-close (if svg? identity sp/close-subpaths)]
:content (and (= :path (:type shape))
(sp/close-subpaths) (not (->> shape
(sp/get-subpaths) :content
(every? sp/is-closed?))))) (maybe-close)
(sp/get-subpaths)
(every? sp/is-closed?))))))