diff options
author | Havoc Pennington <hp@redhat.com> | 2001-11-29 20:09:41 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-11-29 20:09:41 +0000 |
commit | ddfc7377d40fa398a4606177eeea817aded34d59 (patch) | |
tree | e1551c12a3abdc35a22bac06af6c7fc064131a48 /gtk/gtktextiter.c | |
parent | a0dd3bc88414d7091d53ef8d86212f90c4f0cfcb (diff) | |
download | gdk-pixbuf-ddfc7377d40fa398a4606177eeea817aded34d59.tar.gz |
assertion here that we were at the end iterator was not correct; change
2001-11-29 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
assertion here that we were at the end iterator was not correct;
change code to move us to the end iterator. bug #65731
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r-- | gtk/gtktextiter.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index 5a00c1760..a7e685fbc 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -2010,14 +2010,17 @@ _gtk_text_iter_forward_indexable_segment (GtkTextIter *iter) } else { - /* End of buffer */ + /* End of buffer, but iter is still at start of last segment, + * not at the end iterator. We put it on the end iterator. + */ check_invariants (iter); g_assert (!_gtk_text_line_is_last (real->line, real->tree)); g_assert (_gtk_text_line_contains_end_iter (real->line, real->tree)); - if (!gtk_text_iter_is_end (iter)) - _gtk_text_btree_spew (_gtk_text_iter_get_btree (iter)); + + gtk_text_iter_forward_to_line_end (iter); + g_assert (gtk_text_iter_is_end (iter)); return FALSE; |