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:
parent
9c99ec3410
commit
810f868b67
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue