From 90e6e8c5ebd053ddf342ac7c7f2dab9969b5bbf3 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 11 Jul 2025 14:03:15 +0200 Subject: [PATCH] :bug: Fix double undo on text partial overrides --- common/src/app/common/logic/libraries.cljc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/logic/libraries.cljc b/common/src/app/common/logic/libraries.cljc index 6c44899bcb..83a705c656 100644 --- a/common/src/app/common/logic/libraries.cljc +++ b/common/src/app/common/logic/libraries.cljc @@ -1815,10 +1815,15 @@ :else (get origin-shape attr))) + ;; If the final attr-value is the actual value, skip + skip-operations? (or skip-operations? + (= attr-val (get dest-shape attr))) + + ;; On a text-partial-change, we want to force a position-data reset ;; so it's calculated again [roperations uoperations] - (if text-partial-change? + (if (and text-partial-change? (not skip-operations?)) (add-update-attr-operations :position-data dest-shape roperations uoperations nil) [roperations uoperations])