[gimp] gimp_group_layer_duplicate(): insert children in the right order



commit 71134c7f7d161e398fa8c3c55effcd993eb7a5ca
Author: Michael Natterer <mitch gimp org>
Date:   Tue Aug 25 12:11:44 2009 +0200

    gimp_group_layer_duplicate(): insert children in the right order

 app/core/gimpgrouplayer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index cf7ea01..f2a111f 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -340,7 +340,7 @@ gimp_group_layer_duplicate (GimpItem *item,
 
       for (list = GIMP_LIST (group->children)->list, position = 0;
            list;
-           list = g_list_next (list))
+           list = g_list_next (list), position++)
         {
           GimpItem *child = list->data;
           GimpItem *new_child;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]