Code

fix 199791
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 8 Mar 2008 19:40:44 +0000 (19:40 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 8 Mar 2008 19:40:44 +0000 (19:40 +0000)
src/selection-chemistry.cpp

index 62f5c57e2e80c1be0677597912b01ec41609a871..2fdf04ca2e2ac356854be69f81b35267c8b86f2f 100644 (file)
@@ -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()));