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



commit a0fc852e7f4050348ffef0011a3801a9f41b202d
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 36fec73..f9d5812 100644
--- a/libgd/gd-two-lines-renderer.c
+++ b/libgd/gd-two-lines-renderer.c
@@ -487,7 +487,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]