From e4e6331ee588f6b72c9f98840f09d2eb41e23cb3 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 22 Oct 2000 02:11:38 +0000 Subject: Made it so that rows inserted with their children nodes already in the 2000-10-21 Christopher James Lahey * 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 --- widgets/table/e-table-sorted-variable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3