diff --git a/ChangeLog b/ChangeLog index 00144048f4..bf18258e31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-01 Kristian Rietveld + + * gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using + pango_extents_to_pixels to avoid rounding errors. (Fixes #430218, + Shlomi Israel). + 2007-05-31 Mathias Hasselmann * tests/autotestfilechooser.c: Reactivate the other file-chooser diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index 4a08f1c84b..cad230b2c1 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -1534,7 +1534,8 @@ get_size (GtkCellRenderer *cell, else layout = get_layout (celltext, widget, FALSE, 0); - pango_layout_get_pixel_extents (layout, NULL, &rect); + pango_layout_get_extents (layout, NULL, &rect); + pango_extents_to_pixels (&rect, NULL); if (height) *height = cell->ypad * 2 + rect.height;