mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 12:18:32 +00:00
🐛 Fix double undo on text partial overrides
This commit is contained in:
parent
e2c5a1378e
commit
90e6e8c5eb
@ -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])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user