summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 62f5c57e2..2fdf04ca2 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -2632,6 +2632,8 @@ sp_selection_tile(bool apply)
Inkscape::XML::Node *dup = (SP_OBJECT_REPR (i->data))->duplicate(xml_doc);
repr_copies = g_slist_prepend (repr_copies, dup);
}
+ // restore the z-order after prepends
+ repr_copies = g_slist_reverse (repr_copies);
NR::Rect bounds(desktop->dt2doc(r->min()), desktop->dt2doc(r->max()));