aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-05-10 05:39:56 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-05-10 05:39:56 +0800
commitb08b55549aa624127c23a7aae1e01639fac25d76 (patch)
tree0b127ebcaa2ac866e908cee08a458ba748468214 /widgets
parent4d311889344a6106f5ca8913c6d107cc47119862 (diff)
downloadgsoc2013-evolution-b08b55549aa624127c23a7aae1e01639fac25d76.tar.gz
gsoc2013-evolution-b08b55549aa624127c23a7aae1e01639fac25d76.tar.zst
gsoc2013-evolution-b08b55549aa624127c23a7aae1e01639fac25d76.zip
add null check for paths (find_prev_in_range): add null check for paths
2003-05-09 Mike Kestner <mkestner@ximian.com> * e-tree.c (find_next_in_range): add null check for paths (find_prev_in_range): add null check for paths svn path=/trunk/; revision=21143
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index b0c20a4b09..270e59decf 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -2049,7 +2049,7 @@ find_next_in_range (ETree *et, gint start, gint end, ETreePathFunc func, gpointe
for (row = start; row <= end; row++) {
path = e_tree_table_adapter_node_at_row (et->priv->etta, row);
- if (func (et->priv->model, path, data))
+ if (path && func (et->priv->model, path, data))
return path;
}
@@ -2064,7 +2064,7 @@ find_prev_in_range (ETree *et, gint start, gint end, ETreePathFunc func, gpointe
for (row = start; row >= end; row--) {
path = e_tree_table_adapter_node_at_row (et->priv->etta, row);
- if (func (et->priv->model, path, data))
+ if (path && func (et->priv->model, path, data))
return path;
}