Handle the case of a 0 length string properly here.

2002-01-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (line_splitter): Handle the case of a 0
	length string properly here.

svn path=/trunk/; revision=15323
This commit is contained in:
Christopher James Lahey
2002-01-14 21:28:42 +00:00
committed by Chris Lahey
parent 025b29282c
commit 4e788c6fec

View File

@ -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;
}