🐛 Ensure :shapes attr on importing an svg with an empty group

This commit should not not be backported to, because the affected
code is already refactored and the issue is already fixed on develop
branch
This commit is contained in:
Andrey Antukh 2023-07-31 16:24:03 +02:00
parent 37a19aa6b5
commit f72206bba3

View file

@ -57,6 +57,11 @@
cts/default-frame-attrs cts/default-frame-attrs
cts/default-shape-attrs) cts/default-shape-attrs)
default-attrs (if (or (= :group (:type attrs))
(= :bool (:type attrs)))
(assoc default-attrs :shapes [])
default-attrs)
selected-non-frames selected-non-frames
(into #{} (comp (map (d/getf objects)) (into #{} (comp (map (d/getf objects))
(remove cph/frame-shape?)) (remove cph/frame-shape?))