From 4a1d6e6d573a10e06f694efcc4258f17da2cf196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Tue, 11 Aug 2026 13:10:44 +0200 Subject: [PATCH] :bug: Fix creating minimal path shapes (#11210) --- common/src/app/common/types/shape.cljc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 2a3af1ffeb..76f1360ea1 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -657,10 +657,15 @@ [type] (let [type (if (= type :curve) :path type) attrs (get-minimal-shape type) - attrs (cond-> attrs - (and (not= :path type) - (not= :bool type)) - (-> (assoc :x 0) + attrs (if (or (= :path type) + (= :bool type)) + (-> attrs + (assoc :x nil) + (assoc :y nil) + (assoc :width nil) + (assoc :height nil)) + (-> attrs + (assoc :x 0) (assoc :y 0) (assoc :width 0.01) (assoc :height 0.01)))