summaryrefslogtreecommitdiff
path: root/tests/testtext.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-02-13 23:44:03 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-02-13 23:44:03 +0000
commita760ad804e1603ca6ee7e164e6cc5dc12e0f3b41 (patch)
tree9045f4a60cf810a3111e4a6e428a4e12f20b9458 /tests/testtext.c
parent3a4a6edb79fc111a343f2caa7892787c74416e6a (diff)
downloadgdk-pixbuf-a760ad804e1603ca6ee7e164e6cc5dc12e0f3b41.tar.gz
just go ahead and flush all the first validate stuff if it hasn't been
2002-02-13 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush all the first validate stuff if it hasn't been done, presumably someone called process_updates at a weird time. * tests/testtext.c (do_apply_colors): terminate on >= end, not > end, avoids infinite loop when end is at the end of the buffer. * gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a line data, we were adding it to the wrong line ("line" instead of "start_line")
Diffstat (limited to 'tests/testtext.c')
-rw-r--r--tests/testtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testtext.c b/tests/testtext.c
index e153fe204..e9c67dc22 100644
--- a/tests/testtext.c
+++ b/tests/testtext.c
@@ -1086,7 +1086,7 @@ do_apply_colors (gpointer callback_data,
gtk_text_iter_forward_char (&next);
gtk_text_iter_forward_char (&next);
- if (gtk_text_iter_compare (&next, &end) > 0)
+ if (gtk_text_iter_compare (&next, &end) >= 0)
{
next = end;
done = TRUE;