mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix broken text shapes without position-data on comp-v2 migration
This commit is contained in:
parent
6d35cb2eb4
commit
ec2eb3d406
@ -376,6 +376,19 @@
|
|||||||
:selrect selrect
|
:selrect selrect
|
||||||
:points points))
|
:points points))
|
||||||
|
|
||||||
|
(and (cfh/text-shape? shape)
|
||||||
|
(valid-text-content? (:content shape))
|
||||||
|
(not (valid-shape-points? (:points shape)))
|
||||||
|
(grc/valid-rect? (:selrect shape)))
|
||||||
|
(let [selrect (:selrect shape)
|
||||||
|
points (grc/rect->points selrect)]
|
||||||
|
(assoc shape
|
||||||
|
:x (:x selrect)
|
||||||
|
:y (:y selrect)
|
||||||
|
:width (:width selrect)
|
||||||
|
:height (:height selrect)
|
||||||
|
:points points))
|
||||||
|
|
||||||
(and (or (cfh/rect-shape? shape)
|
(and (or (cfh/rect-shape? shape)
|
||||||
(cfh/svg-raw-shape? shape)
|
(cfh/svg-raw-shape? shape)
|
||||||
(cfh/circle-shape? shape))
|
(cfh/circle-shape? shape))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user