From ce675097b16b1906c2d3ff12f75db0428fa518ac Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 17 Jan 2024 12:25:38 +0100 Subject: [PATCH] :bug: Fix problem with group selrect --- common/src/app/common/geom/shapes/transforms.cljc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/transforms.cljc b/common/src/app/common/geom/shapes/transforms.cljc index 6adf456cd4..f9be02adaf 100644 --- a/common/src/app/common/geom/shapes/transforms.cljc +++ b/common/src/app/common/geom/shapes/transforms.cljc @@ -414,7 +414,11 @@ (gco/transform-points shape-center (:transform group (gmt/matrix)))) ;; Calculate the new selrect - new-selrect (grc/points->rect base-points)] + sr-transform (gmt/transform-in (gco/points->center new-points) (:transform-inverse group (gmt/matrix))) + new-selrect + (-> new-points + (gco/transform-points sr-transform) + (grc/points->rect))] ;; Updates the shape and the applytransform-rect will update the other properties (-> group