diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-02-20 19:42:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-02-20 19:42:05 +0000 |
commit | 452de5d6a4e3177564e85d83b7b6218119fd6a79 (patch) | |
tree | d3814fbc066cc309530a8aa9af112590f779d1bb /gtk/gtktextbtree.c | |
parent | db0dfee6de9b55907d7708da9958b783b031d2b9 (diff) | |
download | gtk+-452de5d6a4e3177564e85d83b7b6218119fd6a79.tar.gz |
Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
2003-02-20 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
* gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
(gtk_text_view_update_adjustments): Make sure cursor stays visible
during horizontal scrolling. (#75270)
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r-- | gtk/gtktextbtree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index dd180a2275..6c93657c82 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -4356,7 +4356,10 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line, line_ancestor = line_ancestor_parent; line_ancestor_parent = line_ancestor->parent; - node = line_ancestor_parent->children.node; + if (line_ancestor_parent != NULL) + { + node = line_ancestor_parent->children.node; + } } /* No dice. */ |