diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-tree-table-adapter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index bf15d1659b..f02494c4e1 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -989,6 +989,10 @@ void e_tree_table_adapter_node_set_expanded_recurse (ETreeTableAdapter * ETreePath e_tree_table_adapter_node_at_row (ETreeTableAdapter *etta, int row) { + if (row < 0) + return NULL; + if (row >= etta->priv->n_map) + return NULL; if (etta->priv->root_visible) return etta->priv->map_table[row]; else |