[evolution/wip/webkit2] Bug 769062 - Crash on mouse over task when tasks are grouped



commit a740117a4a2d985051197f669398cf8e3eef222e
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 2 18:48:26 2016 +0200

    Bug 769062 - Crash on mouse over task when tasks are grouped

 e-util/e-table-group-container.c |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-table-group-container.c b/e-util/e-table-group-container.c
index 0069e43..850e018 100644
--- a/e-util/e-table-group-container.c
+++ b/e-util/e-table-group-container.c
@@ -835,16 +835,27 @@ etgc_get_cell_geometry (ETableGroup *etg,
                for (list = etgc->children; list; list = list->next) {
                        ETableGroupContainerChildNode *child_node = (ETableGroupContainerChildNode *) 
list->data;
                        ETableGroup *child = child_node->child;
-                       gint thisy;
+                       gint thisy = 0;
+                       gdouble group_header_y1 = 0.0, group_header_y2 = 0.0;
 
                        e_table_group_get_cell_geometry (child, row, col, x, &thisy, width, height);
                        ypos += thisy;
                        if ((*row == -1) || (*col == -1)) {
                                ypos += TITLE_HEIGHT;
-                               *x += GROUP_INDENT;
-                               *y = ypos;
+                               if (x)
+                                       *x += GROUP_INDENT;
+                               if (y)
+                                       *y = ypos;
                                return;
                        }
+
+                       g_object_get (
+                               child_node->rect,
+                               "y1", &group_header_y1,
+                               "y2", &group_header_y2,
+                               NULL);
+
+                       ypos += group_header_y2 - group_header_y1;
                }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]