diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-20 14:59:30 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-20 14:59:30 +0800 |
commit | 4f973e115c7ae253b22b48261c67d10887b28afa (patch) | |
tree | b00a606c5837ea15c8f4e7ee8a578a9c86b62ea0 /widgets/table | |
parent | 631389f17516804c450aae3032f20e3d1bbd085b (diff) | |
download | gsoc2013-evolution-4f973e115c7ae253b22b48261c67d10887b28afa.tar.gz gsoc2013-evolution-4f973e115c7ae253b22b48261c67d10887b28afa.tar.zst gsoc2013-evolution-4f973e115c7ae253b22b48261c67d10887b28afa.zip |
Check for num_children == -1 here and generate the children if they
2001-10-20 Christopher James Lahey <clahey@ximian.com>
* 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
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree-sorted.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |