From 4fdf6b76d694d20b7bc67a8cfb65e4dd77542d69 Mon Sep 17 00:00:00 2001 From: knutux Date: Fri, 21 Apr 2006 04:56:23 +0000 Subject: [PATCH] fixing incorrect group children order (bug introduced with support) --- src/sp-item-group.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 3ce551b98..cd11b3c41 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -648,7 +648,7 @@ void CGroup::calculateBBox(NRRect *bbox, NR::Matrix const &transform, unsigned c } void CGroup::onPrint(SPPrintContext *ctx) { - GSList *l = _childList(false); + GSList *l = g_slist_reverse(_childList(false)); while (l) { SPObject *o = SP_OBJECT (l->data); if (SP_IS_ITEM(o)) { @@ -693,7 +693,7 @@ void CGroup::_showChildren (NRArena *arena, NRArenaItem *ai, unsigned int key, u NRArenaItem *ac = NULL; NRArenaItem *ar = NULL; SPItem * child = NULL; - GSList *l = _childList(false, ActionShow); + GSList *l = g_slist_reverse(_childList(false, ActionShow)); while (l) { SPObject *o = SP_OBJECT (l->data); if (SP_IS_ITEM (o)) { @@ -712,7 +712,7 @@ void CGroup::_showChildren (NRArena *arena, NRArenaItem *ai, unsigned int key, u void CGroup::hide (unsigned int key) { SPItem * child; - GSList *l = _childList(false, ActionShow); + GSList *l = g_slist_reverse(_childList(false, ActionShow)); while (l) { SPObject *o = SP_OBJECT (l->data); if (SP_IS_ITEM (o)) { -- 2.30.2