From cc6b3dcec693272c240c76545f63214dbc2cd33a Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 13 Jul 2022 14:35:04 +0200 Subject: [PATCH] :bug: Fix problem with group coordinates --- CHANGES.md | 2 ++ .../main/ui/workspace/sidebar/options/menus/measures.cljs | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 39ce090b9..66c4b22c1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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!) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs index 7b2f613a5..79d84a767 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs @@ -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