diff options
-rw-r--r-- | widgets/table/e-tree-selection-model.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } /** |