mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 01:06:10 +02:00
🐛 Fix paste in place in arboards
This commit is contained in:
parent
5b9bcf8b1d
commit
5e6719e22e
2 changed files with 3 additions and 1 deletions
|
@ -1648,7 +1648,6 @@
|
|||
;; Procceed with the standard shape paste procediment.
|
||||
(do-paste [it state mouse-pos media]
|
||||
(let [page-objects (wsh/lookup-page-objects state)
|
||||
all-objects (merge page-objects paste-objects)
|
||||
media-idx (d/index-by :prev-id media)
|
||||
|
||||
;; Calculate position for the pasted elements
|
||||
|
@ -1670,6 +1669,8 @@
|
|||
:shape-ref
|
||||
:touched))))))
|
||||
|
||||
all-objects (merge page-objects paste-objects)
|
||||
|
||||
page-id (:current-page-id state)
|
||||
unames (-> (wsh/lookup-page-objects state page-id)
|
||||
(dwc/retrieve-used-names)) ;; TODO: move this calculation inside prepare-duplcate-changes?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue