diff options
-rw-r--r-- | widgets/table/e-table-sorted-variable.c | 4 |
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; |