mirror of
https://github.com/penpot/penpot.git
synced 2026-08-24 13:48:51 +00:00
🐛 Fix paste frame removes all guides
Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
parent
c62427501e
commit
424e9faa8e
@ -425,11 +425,9 @@
|
|||||||
(assoc :position (if (= (:axis %) :x)
|
(assoc :position (if (= (:axis %) :x)
|
||||||
(+ (:position %) (- (:x new-frame) (:x frame)))
|
(+ (:position %) (- (:x new-frame) (:x frame)))
|
||||||
(+ (:position %) (- (:y new-frame) (:y frame))))))))]
|
(+ (:position %) (- (:y new-frame) (:y frame))))))))]
|
||||||
|
(cond-> g
|
||||||
(if-not (empty? new-guides)
|
(not-empty new-guides)
|
||||||
(conj g
|
(conj (into {} (map (juxt :id identity) new-guides))))))
|
||||||
(into {} (map (juxt :id identity) new-guides)))
|
|
||||||
{})))
|
|
||||||
guides
|
guides
|
||||||
frames)]
|
frames)]
|
||||||
(-> (pcb/with-page changes page)
|
(-> (pcb/with-page changes page)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user