From 0a5263be359ecf958d20dbc2883ae52e69a65c9f Mon Sep 17 00:00:00 2001 From: Ryan Breen Date: Mon, 1 May 2023 04:34:08 -0400 Subject: [PATCH] :bug: rect filter bounds math fix get-rect-filter-bounds was incorrectly applying delta-blur to x1 twice and to y1 never Signed-off-by: Ryan Breen --- CHANGES.md | 1 + common/src/app/common/geom/shapes/bounds.cljc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f631d4b35e..67f36ed308 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ - Duplicate objects via drag + alt (by @akshay-gupta7) [Github #3147](https://github.com/penpot/penpot/pull/3147) - Set line-height to auto as 1.2 (by @akshay-gupta7) [Github #3185](https://github.com/penpot/penpot/pull/3185) - Click to select full values at the design sidebar (by @akshay-gupta7) [Github #3179](https://github.com/penpot/penpot/pull/3179) +- Fix rect filter bounds math (by @ryanbreen) [Github #3180](https://github.com/penpot/penpot/pull/3180) ## 1.18.3 (Unreleased) diff --git a/common/src/app/common/geom/shapes/bounds.cljc b/common/src/app/common/geom/shapes/bounds.cljc index 81a4f56c79..9bb6686f69 100644 --- a/common/src/app/common/geom/shapes/bounds.cljc +++ b/common/src/app/common/geom/shapes/bounds.cljc @@ -70,7 +70,7 @@ (update :x - delta-blur) (update :y - delta-blur) (update :x1 - delta-blur) - (update :x1 - delta-blur) + (update :y1 - delta-blur) (update :x2 + delta-blur) (update :y2 + delta-blur) (update :width + (* delta-blur 2))