0
Fork 0
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:
alonso.torres 2022-05-19 16:26:08 +02:00 committed by Andrés Moya
parent 93b582c385
commit d8a7402046

View file

@ -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))))