aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;