aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 1c45afa7ef..985a44ab2d 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -1787,6 +1787,11 @@ e_tree_get_cell_at (ETree *tree,
/* FIXME it would be nice if it could handle a NULL row_return or
* col_return gracefully. */
+ if (row_return)
+ *row_return = -1;
+ if (col_return)
+ *col_return = -1;
+
x += GTK_LAYOUT(tree->priv->table_canvas)->hadjustment->value;
y += GTK_LAYOUT(tree->priv->table_canvas)->vadjustment->value;
e_table_item_compute_location(E_TABLE_ITEM(tree->priv->item), &x, &y, row_return, col_return);