From 452de5d6a4e3177564e85d83b7b6218119fd6a79 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 20 Feb 2003 19:42:05 +0000 Subject: Check if line_ancestor_parent is NULL. (#102711, Manuel Clos) 2003-02-20 Matthias Clasen * 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) --- gtk/gtktextbtree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/gtktextbtree.c') 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. */ -- cgit v1.2.1