0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 16:56:11 -05:00

🐛 Fixes problem when drawing new shape

This commit is contained in:
alonso.torres 2020-04-27 14:28:09 +02:00
parent a7cb90919f
commit 91eebecb61

View file

@ -301,7 +301,7 @@
(mf/defc generic-draw-area (mf/defc generic-draw-area
[{:keys [shape zoom]}] [{:keys [shape zoom]}]
(let [{:keys [x y width height]} (geom/shape->rect-shape shape)] (let [{:keys [x y width height]} (geom/transform-selrect nil shape)]
(when (and x y) (when (and x y)
[:g [:g
[:& shapes/shape-wrapper {:shape shape}] [:& shapes/shape-wrapper {:shape shape}]