summaryrefslogtreecommitdiffstats
path: root/src/sp-item-group.cpp
diff options
context:
space:
mode:
authorAndrius Ramanauskas <knutux@gmail.com>2006-04-21 04:56:23 +0000
committerknutux <knutux@users.sourceforge.net>2006-04-21 04:56:23 +0000
commita39c5d743050961abef6567726f48ed011f6b529 (patch)
tree1dc648d0960a3b5aa25fd5cf63aa9ded3e2cb3f6 /src/sp-item-group.cpp
parentremove duplicate styles, add placeholders for opacities (diff)
downloadinkscape-a39c5d743050961abef6567726f48ed011f6b529.tar.gz
inkscape-a39c5d743050961abef6567726f48ed011f6b529.zip
fixing incorrect group children order (bug introduced with <switch> support)
(bzr r560)
Diffstat (limited to 'src/sp-item-group.cpp')
-rw-r--r--src/sp-item-group.cpp6
1 files 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)) {