diff options
author | Chris Lahey <clahey@src.gnome.org> | 2000-12-07 02:49:13 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-07 02:49:13 +0800 |
commit | 655cd28a4391749fabe3e51bc7beba6f4e682e05 (patch) | |
tree | 5e8299e911de8d9a8ee504705f45ac4881c6def4 /widgets/table | |
parent | a8463d6703469a525fc9192af521f5048e0957ae (diff) | |
download | gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.gz gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.zst gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.zip |
Missed this file during the last commit.
svn path=/trunk/; revision=6817
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-header-utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |