mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
🐛 Fix paste frame removes all guides
Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
parent
1174502cb8
commit
902c746dbb
1 changed files with 3 additions and 5 deletions
|
@ -425,11 +425,9 @@
|
|||
(assoc :position (if (= (:axis %) :x)
|
||||
(+ (:position %) (- (:x new-frame) (:x frame)))
|
||||
(+ (:position %) (- (:y new-frame) (:y frame))))))))]
|
||||
|
||||
(if-not (empty? new-guides)
|
||||
(conj g
|
||||
(into {} (map (juxt :id identity) new-guides)))
|
||||
{})))
|
||||
(cond-> g
|
||||
(not-empty new-guides)
|
||||
(conj (into {} (map (juxt :id identity) new-guides))))))
|
||||
guides
|
||||
frames)]
|
||||
(-> (pcb/with-page changes page)
|
||||
|
|
Loading…
Add table
Reference in a new issue