[libgd/wip/rishi/two-lines: 3/4] two-lines-renderer: Don't ignore the aligned area's y-offset



commit dea06ecf1c29c9463c52ff49df5aaa57b78d92d0
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Feb 1 18:30:05 2018 +0100

    two-lines-renderer: Don't ignore the aligned area's y-offset
    
    This also matches what GtkCellRendererText does.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792665

 libgd/gd-two-lines-renderer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgd/gd-two-lines-renderer.c b/libgd/gd-two-lines-renderer.c
index b28fc1e..85c033a 100644
--- a/libgd/gd-two-lines-renderer.c
+++ b/libgd/gd-two-lines-renderer.c
@@ -486,7 +486,7 @@ gd_two_lines_renderer_get_aligned_area (GtkCellRenderer      *cell,
   x_offset = MIN (x_offset_1, x_offset_2);
 
   aligned_area->x = cell_area->x + x_offset;
-  aligned_area->y = cell_area->y;
+  aligned_area->y = cell_area->y + y_offset;
 }
 
 static void


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