From d2d7803186f89c1f6351c097a36144c9bc4c3895 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 23 Sep 2022 14:05:35 +0200 Subject: [PATCH] :bug: Fix export bounding box mask --- 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 d86a920e7..fc43af955 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,7 @@ - Fix error after user drags any layer in search functionality [Taiga #4161](https://tree.taiga.io/project/penpot/issue/4161) - Fix font search works only with lowercase letters [Taiga #4140](https://tree.taiga.io/project/penpot/issue/4140) - Fix Terms and Privacy links overlapping [Taiga #4137](https://tree.taiga.io/project/penpot/issue/4137) +- Fix Export bounding box mask [Taiga #950](https://tree.taiga.io/project/penpot/issue/950) ## 1.15.3-beta diff --git a/common/src/app/common/geom/shapes/bounds.cljc b/common/src/app/common/geom/shapes/bounds.cljc index 3220d2548..33227cc36 100644 --- a/common/src/app/common/geom/shapes/bounds.cljc +++ b/common/src/app/common/geom/shapes/bounds.cljc @@ -133,7 +133,7 @@ (-> (get-shape-filter-bounds shape) (add-padding (calculate-padding shape true)))) - bounds (if (cph/frame-shape? shape) + bounds (if (or (:masked-group? shape) (cph/frame-shape? shape)) [(calculate-base-bounds shape)] (cph/reduce-objects objects