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:
parent
d0878aa805
commit
fae76f6d4e
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue