Fixed this to not call the callback with a row of -1.

2001-04-04  Christopher James Lahey  <clahey@ximian.com>

	* 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
This commit is contained in:
Christopher James Lahey
2001-04-04 07:16:12 +00:00
committed by Chris Lahey
parent 1a7cbd512e
commit ca0d8034c2
+2 -1
View File
@@ -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);
}
/**