mirror of
https://github.com/penpot/penpot.git
synced 2026-02-13 23:23:10 +00:00
🐛 Fix problem with geometry of groups
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user