0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 01:28:30 -05:00

:bug Fix duplicate artboard without whithout guides

This commit is contained in:
Alejandro Alonso 2022-04-26 17:37:10 +02:00
parent dbfa0e7a4b
commit 20badb7676

View file

@ -421,8 +421,11 @@
(assoc :position (if (= (:axis %) :x)
(+ (:position %) (- (:x new-frame) (:x frame)))
(+ (:position %) (- (:y new-frame) (:y frame))))))))]
(conj g
(into {} (map (juxt :id identity) new-guides)))))
(if-not (empty? new-guides)
(conj g
(into {} (map (juxt :id identity) new-guides)))
{})))
guides
frames)]
(-> (pcb/with-page changes page)