From ca0d8034c2da730dbd1c53057ad8ce3cbcda41b9 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 4 Apr 2001 07:16:12 +0000 Subject: Fixed this to not call the callback with a row of -1. 2001-04-04 Christopher James Lahey * e-tree-selection-model.c (etsm_row_foreach_cb): Fixed this to not call the callback with a row of -1. svn path=/trunk/; revision=9167 --- widgets/table/e-tree-selection-model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets/table') diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c index 3c0c3d22a3..bfca69472a 100644 --- a/widgets/table/e-tree-selection-model.c +++ b/widgets/table/e-tree-selection-model.c @@ -695,7 +695,8 @@ etsm_row_foreach_cb (ETreePath path, gpointer user_data) { ModelAndCallback *mac = user_data; int row = etsm_row_of_node(mac->etsm, path); - mac->callback(row, mac->closure); + if (row != -1) + mac->callback(row, mac->closure); } /** -- cgit v1.2.3