mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🐛 Fix problems with text position data
This commit is contained in:
parent
93b582c385
commit
d8a7402046
1 changed files with 2 additions and 6 deletions
|
@ -126,15 +126,11 @@
|
|||
new-modifiers (-> (get modifiers id) strip-modifier)]
|
||||
(or (and (not (identical? old-shape new-shape))
|
||||
(not= old-shape new-shape))
|
||||
|
||||
;; The shape has changed only if its modifier is not empty and it's different
|
||||
(and (not= new-modifiers old-modifiers)
|
||||
(or (not (gsh/empty-modifiers? (:modifiers old-modifiers)))
|
||||
(not (gsh/empty-modifiers? (:modifiers new-modifiers))))))))
|
||||
(not= new-modifiers old-modifiers))))
|
||||
|
||||
changed-texts
|
||||
(mf/use-memo
|
||||
(mf/deps text-shapes)
|
||||
(mf/deps text-shapes modifiers)
|
||||
#(->> (keys text-shapes)
|
||||
(filter text-change?)
|
||||
(map (d/getf text-shapes))))
|
||||
|
|
Loading…
Add table
Reference in a new issue