From e0cc9993452027389f2d317d87528954d1786a4d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 29 Nov 2024 13:23:39 +0100 Subject: [PATCH] :bug: Fix regression on drawing text with auto-size Using editor v1 Caused by 2ed743b6be2a6b32ee96af0ad0493f8e772d7163 --- .../main/ui/workspace/shapes/frame/dynamic_modifiers.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/frame/dynamic_modifiers.cljs b/frontend/src/app/main/ui/workspace/shapes/frame/dynamic_modifiers.cljs index 41f0584b3..71533852e 100644 --- a/frontend/src/app/main/ui/workspace/shapes/frame/dynamic_modifiers.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/frame/dynamic_modifiers.cljs @@ -235,7 +235,11 @@ (when (some? modifiers) (d/mapm (fn [id {current-modifiers :modifiers}] (let [shape (get objects id) - adapt-text? (and (= :text (:type shape)) (not (ctm/only-move? current-modifiers))) + + adapt-text? + (and (= :text (:type shape)) + (ctm/has-geometry? current-modifiers) + (not (ctm/only-move? current-modifiers))) current-modifiers (cond-> current-modifiers