0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 12:01:19 -05:00

Merge pull request #5396 from penpot/niwinz-bugfix-1

🐛 Fix regression on drawing text with auto-size
This commit is contained in:
Aitor Moreno 2024-11-29 15:55:34 +01:00 committed by GitHub
commit fffc3b1b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,7 +235,11 @@
(when (some? modifiers)
(d/mapm (fn [id {current-modifiers :modifiers}]
(let [shape (get objects id)
adapt-text? (and (= :text (:type shape)) (not (ctm/only-move? current-modifiers)))
adapt-text?
(and (= :text (:type shape))
(ctm/has-geometry? current-modifiers)
(not (ctm/only-move? current-modifiers)))
current-modifiers
(cond-> current-modifiers