diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-23 23:55:19 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-23 23:55:19 +0000 |
commit | 46a8d6e80d8d735de2f89d49eaf6987acd906560 (patch) | |
tree | 700a8171cfdfd7347a1550113973eb82bb560c45 /gtk/gtkctree.c | |
parent | 1123956779445f285ab6b807cc7714141c47154b (diff) | |
download | gtk+-46a8d6e80d8d735de2f89d49eaf6987acd906560.tar.gz |
Remove some strange arithmetic that was resulting in rows being drawn too
Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
* gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
arithmetic that was resulting in rows being drawn too low.
(#65001, reported by Damon Chaplin)
Diffstat (limited to 'gtk/gtkctree.c')
-rw-r--r-- | gtk/gtkctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkctree.c b/gtk/gtkctree.c index 9e5c6a33c9..f195f6a499 100644 --- a/gtk/gtkctree.c +++ b/gtk/gtkctree.c @@ -1936,7 +1936,7 @@ draw_row (GtkCList *clist, case GTK_CELL_TEXT: if (layout) { - gint row_center_offset = 1.5 + (clist->row_height - logical_rect.height - 1) / 2; + gint row_center_offset = (clist->row_height - logical_rect.height) / 2; gdk_gc_set_clip_rectangle (fg_gc, &clip_rectangle); gdk_draw_layout (clist->clist_window, fg_gc, |