From 655cd28a4391749fabe3e51bc7beba6f4e682e05 Mon Sep 17 00:00:00 2001 From: Chris Lahey Date: Wed, 6 Dec 2000 18:49:13 +0000 Subject: Missed this file during the last commit. svn path=/trunk/; revision=6817 --- widgets/table/e-table-header-utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index 99fdba680f..990a7a09f7 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -318,11 +318,13 @@ static int compute_elision_length (GdkFont *font, const char *str, int max_width) { int len; - int l, left, right; + int l = 0, left, right; int rbearing; len = strlen (str); - g_assert (len > 0); + + if (len <= 0) + return 0; left = 0; right = len; -- cgit v1.2.3