0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-24 21:51:47 -05:00

🐛 Fix problem with geometry of groups

This commit is contained in:
alonso.torres 2023-03-23 11:53:43 +01:00
parent d0878aa805
commit fae76f6d4e

View file

@ -382,10 +382,11 @@
(defn update-group-selrect
[group children]
(let [shape-center (gco/center-shape group)
;; Points for every shape inside the group
(let [;; Points for every shape inside the group
points (->> children (mapcat :points))
shape-center (gco/center-points points)
;; Fixed problem with empty groups. Should not happen (but it does)
points (if (empty? points) (:points group) points)