0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

🐛 Fix problem with group coordinates

This commit is contained in:
alonso.torres 2022-07-13 14:35:04 +02:00
parent 7abbcdf226
commit cc6b3dcec6
2 changed files with 6 additions and 2 deletions

View file

@ -31,6 +31,8 @@
- Support for import/export binary format [Taiga #2991](https://tree.taiga.io/project/penpot/us/2991)
### :bug: Bugs fixed
- Fix problem with group coordinates [#2008](https://github.com/penpot/penpot/issues/2008)
### :arrow_up: Deps updates
### :heart: Community contributions by (Thank you!)

View file

@ -78,8 +78,10 @@
;; In case of multiple selection, the origin point has been already
;; calculated and given in the fake :ox and :oy attributes. See
;; common/src/app/common/attrs.cljc
(some? (:ox values)) (assoc :x (:ox values))
(some? (:oy values)) (assoc :y (:oy values))))
(and (= (:x values) :multiple)
(some? (:ox values))) (assoc :x (:ox values))
(and (= (:y values) :multiple)
(some? (:oy values))) (assoc :y (:oy values))))
;; For :height and :width we take those in the :selrect attribute, because
;; not all shapes have an own :width and :height (e. g. paths). Here the