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
This commit is contained in:
Christopher James Lahey
2000-10-22 02:11:38 +00:00
committed by Chris Lahey
parent 3e3b5fc7b8
commit e4e6331ee5

View File

@ -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;