From 164f34f40db295af3ef4151620598a4f384973dc Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 3 Apr 2001 04:44:25 +0000 Subject: Don't draw the button if it's less than 1 pixel wide. 2001-04-03 Christopher James Lahey * e-table-header-item.c (ethi_draw): Don't draw the button if it's less than 1 pixel wide. * e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed a small array overrun (wasn't causing problems, but it's best to be correct.) svn path=/trunk/; revision=9120 --- widgets/table/e-table-header-item.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/table/e-table-header-item.c') diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index cfbabb939f..2a7c36facf 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -819,6 +819,9 @@ ethi_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width if (x2 < x) continue; + if (x2 <= x1) + continue; + e_table_header_draw_button (drawable, ecol, GTK_WIDGET (canvas)->style, ethi->font, GTK_WIDGET_STATE (canvas), -- cgit v1.2.3