diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-05-30 04:19:29 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-05-30 04:19:29 +0000 |
commit | 416b66f3ab928a72d1bcc7a52e99538844a4a0e9 (patch) | |
tree | 248823affb3b112a266cf747e8fa46efe1589834 /gdk/gdkpango.c | |
parent | 743c6be7e4ea3ca552418e7164a6e0cde3eefa93 (diff) | |
download | gdk-pixbuf-416b66f3ab928a72d1bcc7a52e99538844a4a0e9.tar.gz |
Fix offset to center the underline in requested rectangle. (Ported from
2006-05-30 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (draw_error_underline): Fix offset to center the
underline in requested rectangle. (Ported from pango fix.)
Diffstat (limited to 'gdk/gdkpango.c')
-rw-r--r-- | gdk/gdkpango.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index 9375a8054..34df537f1 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -278,7 +278,7 @@ draw_error_underline (cairo_t *cr, double y_top, y_bottom; int i; - x += (width - width_units * unit_width); + x += (width - width_units * unit_width) / 2; width = width_units * unit_width; y_top = y; |