mirror of
https://github.com/penpot/penpot.git
synced 2026-03-14 22:46:00 +00:00
🐛 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user