aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChris Lahey <clahey@src.gnome.org>2000-12-07 02:49:13 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-07 02:49:13 +0800
commit655cd28a4391749fabe3e51bc7beba6f4e682e05 (patch)
tree5e8299e911de8d9a8ee504705f45ac4881c6def4 /widgets
parenta8463d6703469a525fc9192af521f5048e0957ae (diff)
downloadgsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar
gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.gz
gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.bz2
gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.lz
gsoc2013-evolution-655cd28a4391749fabe3e51bc7beba6f4e682e05.tar.xz
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')
-rw-r--r--widgets/table/e-table-header-utils.c6
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;