mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
🐛 Fix regression on drawing text with auto-size
Using editor v1
Caused by 2ed743b6be
This commit is contained in:
parent
5e2b847202
commit
e0cc999345
1 changed files with 5 additions and 1 deletions
|
@ -235,7 +235,11 @@
|
||||||
(when (some? modifiers)
|
(when (some? modifiers)
|
||||||
(d/mapm (fn [id {current-modifiers :modifiers}]
|
(d/mapm (fn [id {current-modifiers :modifiers}]
|
||||||
(let [shape (get objects id)
|
(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
|
current-modifiers
|
||||||
(cond-> current-modifiers
|
(cond-> current-modifiers
|
||||||
|
|
Loading…
Add table
Reference in a new issue