From bc9be7846acd61bf32950efb681a6bf137bd89e8 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 19 Jan 2023 14:14:35 +0100 Subject: [PATCH] :bug: Fix problem with empty mask on layout --- common/src/app/common/geom/shapes/modifiers.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/modifiers.cljc b/common/src/app/common/geom/shapes/modifiers.cljc index 15cfdd9c09..9b859a5aec 100644 --- a/common/src/app/common/geom/shapes/modifiers.cljc +++ b/common/src/app/common/geom/shapes/modifiers.cljc @@ -132,7 +132,7 @@ children (cph/get-immediate-children objects shape-id)] (cond - (cph/mask-shape? shape) + (and (cph/mask-shape? shape) (seq children)) (get-group-bounds objects bounds modif-tree (-> children first)) (cph/group-shape? shape)