From 4f973e115c7ae253b22b48261c67d10887b28afa Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 20 Oct 2001 06:59:30 +0000 Subject: Check for num_children == -1 here and generate the children if they 2001-10-20 Christopher James Lahey * e-tree-sorted.c (e_tree_sorted_node_num_children): Check for num_children == -1 here and generate the children if they haven't been. Fixes Ximian bug #12464. svn path=/trunk/; revision=13819 --- widgets/table/e-tree-sorted.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c index 7045d63a7d..238007c005 100644 --- a/widgets/table/e-tree-sorted.c +++ b/widgets/table/e-tree-sorted.c @@ -1311,6 +1311,11 @@ e_tree_sorted_node_num_children (ETreeSorted *ets, ETreePath path) { ETreeSortedPath *sorted_path = path; + + if (sorted_path->num_children == -1) { + generate_children(ets, sorted_path); + } + return sorted_path->num_children; } -- cgit v1.2.3