mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 20:18:39 +00:00
🐛 Fix double undo on text partial overrides
This commit is contained in:
parent
e2c5a1378e
commit
90e6e8c5eb
@ -1815,10 +1815,15 @@
|
|||||||
:else
|
:else
|
||||||
(get origin-shape attr)))
|
(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
|
;; On a text-partial-change, we want to force a position-data reset
|
||||||
;; so it's calculated again
|
;; so it's calculated again
|
||||||
[roperations uoperations]
|
[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)
|
(add-update-attr-operations :position-data dest-shape roperations uoperations nil)
|
||||||
[roperations uoperations])
|
[roperations uoperations])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user