summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2018-02-01 18:30:05 +0100
committerDebarshi Ray <debarshir@gnome.org>2018-02-01 19:53:09 +0100
commitdea06ecf1c29c9463c52ff49df5aaa57b78d92d0 (patch)
treedd78178d5742edf4ceda1d2593fc3df10e9327cd
parent391c5febaa7f278de1ab4390b46982fb8198ed43 (diff)
downloadlibgd-dea06ecf1c29c9463c52ff49df5aaa57b78d92d0.tar.gz
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
-rw-r--r--libgd/gd-two-lines-renderer.c2
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