aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-01-15 05:28:42 +0800
committerChris Lahey <clahey@src.gnome.org>2002-01-15 05:28:42 +0800
commit4e788c6fec759cdf2c295df8759a1612fcfa665c (patch)
treec358d9a1c4e5d22a2487e867bba4cf9e463b0659 /widgets
parent025b29282c5626ab6ba9b78c149e639c5d154cca (diff)
downloadgsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar.gz
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar.bz2
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar.lz
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar.xz
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.tar.zst
gsoc2013-evolution-4e788c6fec759cdf2c295df8759a1612fcfa665c.zip
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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-text.c6
1 files changed, 6 insertions, 0 deletions
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;
}