mirror of
https://github.com/penpot/penpot.git
synced 2025-03-14 08:41:48 -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))
|
(rect->path x y width height r1 r2 r3 r4))
|
||||||
|
|
||||||
;; Apply the transforms that had the shape
|
;; Apply the transforms that had the shape
|
||||||
transform (gmt/transform-in (gsh/center-shape shape) (:transform shape))
|
transform (:transform shape)
|
||||||
new-content (gsp/transform-content new-content transform)]
|
new-content (cond-> new-content
|
||||||
|
(some? transform)
|
||||||
|
(gsp/transform-content (gmt/transform-in (gsh/center-shape shape) transform)))]
|
||||||
|
|
||||||
(-> shape
|
(-> shape
|
||||||
(d/without-keys dissoc-attrs)
|
(d/without-keys dissoc-attrs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue