From 64217b34caf57af777e900d6a1af206461fa4679 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 2 Aug 2022 10:22:08 +0200 Subject: [PATCH] :bug: Fix copy and paste layers order --- CHANGES.md | 3 ++- frontend/src/app/main/data/workspace.cljs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 1a9713d0a..909f62349 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,7 +38,8 @@ - Fix moving frame-guides outside frames [Taiga #3839](https://tree.taiga.io/project/penpot/issue/3839) - Fix problem with 180 degree rotations [#2082](https://github.com/penpot/penpot/issues/2082) - Fix font rendering on grid thumbnails [Taiga #3473](https://tree.taiga.io/project/penpot/issue/3473) -- Fix Drag and drop font assets in groups +- Fix Drag and drop font assets in groups [Taiga #3763](https://tree.taiga.io/project/penpot/issue/3763) +- Fix copy and paste layers order [Taiga #1617](https://tree.taiga.io/project/penpot/issue/1617) ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 397d3824e..c333f8874 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1087,6 +1087,7 @@ objects (cph/selected-subtree objects selected) selected (->> (cph/sort-z-index objects selected) + (reverse) (into (d/ordered-set)))] (assoc data :selected selected)))