0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix problem with shapes with no transform to path

This commit is contained in:
alonso.torres 2021-05-19 16:52:21 +02:00
parent 9c99ec3410
commit 810f868b67

View file

@ -131,8 +131,10 @@
(rect->path x y width height r1 r2 r3 r4))
;; Apply the transforms that had the shape
transform (gmt/transform-in (gsh/center-shape shape) (:transform shape))
new-content (gsp/transform-content new-content transform)]
transform (:transform shape)
new-content (cond-> new-content
(some? transform)
(gsp/transform-content (gmt/transform-in (gsh/center-shape shape) transform)))]
(-> shape
(d/without-keys dissoc-attrs)