🐛 Fix ITransformable error when path content is a plain vector

Coerce content to PathData in transform-content before dispatching
the ITransformable protocol, so shapes carrying a plain vector in
their :content field (legacy data, bool shapes, SVG imports) no
longer crash with 'No protocol method ITransformable.-transform
defined for type object'.

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Andrey Antukh
2026-03-10 18:06:44 +00:00
parent 31d8b35a2c
commit f566a2adfd

View File

@@ -777,7 +777,7 @@
content as PathData instance."
[content transform]
(if (some? transform)
(impl/-transform content transform)
(impl/-transform (impl/path-data content) transform)
content))
(defn move-content