From 4e788c6fec759cdf2c295df8759a1612fcfa665c Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 14 Jan 2002 21:28:42 +0000 Subject: Handle the case of a 0 length string properly here. 2002-01-14 Christopher James Lahey * gal/e-text/e-text.c (line_splitter): Handle the case of a 0 length string properly here. svn path=/trunk/; revision=15323 --- widgets/text/e-text.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'widgets') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 349b2d40b8..c4b5bb5cf6 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -1025,6 +1025,12 @@ line_splitter (ETextModel *model, EFont *font, EFontStyle style, ++line_count; } + + if (line_count == 0) { + if (split_cb) + split_cb (0, text, strlen (text), user_data); + line_count ++; + } return line_count; } -- cgit v1.2.3