aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-22 10:11:38 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-22 10:11:38 +0800
commite4e6331ee588f6b72c9f98840f09d2eb41e23cb3 (patch)
tree6c1cb01e6d687fcb5c9a3038192d090c01cf65e7 /widgets/table
parent3e3b5fc7b8cfb5bc15d2c43672f7021173f18854 (diff)
downloadgsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar.gz
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar.bz2
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar.lz
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar.xz
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.tar.zst
gsoc2013-evolution-e4e6331ee588f6b72c9f98840f09d2eb41e23cb3.zip
Made it so that rows inserted with their children nodes already in the
2000-10-21 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Made it so that rows inserted with their children nodes already in the tree get placed before their children nodes instead of after. svn path=/trunk/; revision=6101
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-sorted-variable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index 238da9e353..53a92371ae 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -214,7 +214,9 @@ etsv_add (ETableSubsetVariable *etssv,
if (grouplen == newgrouplen) {
if (etsv_compare(etsv, etss->map_table[i], row) >= 0)
break;
- }
+ } else if (strncmp(newgroup + cmp, group + cmp, grouplen - cmp) == 0)
+ /* Found a child of the inserted node. Insert here. */
+ break;
} else {
/* ran out of common parents, insert here */
break;