mirror of
https://github.com/penpot/penpot.git
synced 2025-06-30 21:27:00 +02:00
🐛 Fix problem with path edition
This commit is contained in:
parent
81dac233a7
commit
644c796772
1 changed files with 13 additions and 0 deletions
|
@ -23,9 +23,22 @@
|
||||||
(us/verify ::spec/content new-content)
|
(us/verify ::spec/content new-content)
|
||||||
(let [shape-id (:id shape)
|
(let [shape-id (:id shape)
|
||||||
|
|
||||||
|
[old-points old-selrect]
|
||||||
|
(helpers/content->points+selrect shape old-content)
|
||||||
|
|
||||||
[new-points new-selrect]
|
[new-points new-selrect]
|
||||||
(helpers/content->points+selrect shape new-content)
|
(helpers/content->points+selrect shape new-content)
|
||||||
|
|
||||||
|
;; We set the old values so the update-shapes works
|
||||||
|
objects
|
||||||
|
(-> objects
|
||||||
|
(update
|
||||||
|
shape-id
|
||||||
|
assoc
|
||||||
|
:content old-content
|
||||||
|
:selrect old-selrect
|
||||||
|
:points old-points))
|
||||||
|
|
||||||
changes (-> (pcb/empty-changes it page-id)
|
changes (-> (pcb/empty-changes it page-id)
|
||||||
(pcb/with-objects objects))]
|
(pcb/with-objects objects))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue