diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-cell-tree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index f056cde271..62c78da748 100644 --- a/widgets/table/e-cell-tree.c +++ b/widgets/table/e-cell-tree.c @@ -179,9 +179,14 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, node = e_cell_tree_get_node (ecell_view->e_table_model, row); - offset = offset_of_node (tree_model, node); expandable = e_tree_model_node_is_expandable (tree_model, node); expanded = e_tree_model_node_is_expanded (tree_model, node); + + if (visible_depth_of_node (tree_model, node) > 0 || expandable) { + offset = offset_of_node (tree_model, node); + } else { + offset = 0; + } subcell_offset = offset; node_image = e_tree_model_icon_of_node (tree_model, node); |