Don't iterate too far up. (#147965, Olivier Sessink)

Fri Jul 23 11:00:17 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
	Don't iterate too far up. (#147965, Olivier Sessink)
This commit is contained in:
Matthias Clasen 2004-07-23 15:01:50 +00:00 committed by Matthias Clasen
parent a35539698a
commit 74d62a92ea
5 changed files with 26 additions and 7 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
Don't iterate too far up. (#147965, Olivier Sessink)
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_finalize):

View File

@ -1,3 +1,8 @@
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
Don't iterate too far up. (#147965, Olivier Sessink)
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_finalize):

View File

@ -1,3 +1,8 @@
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
Don't iterate too far up. (#147965, Olivier Sessink)
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_finalize):

View File

@ -1,3 +1,8 @@
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
Don't iterate too far up. (#147965, Olivier Sessink)
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_finalize):

View File

@ -4487,8 +4487,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
line_ancestor = line->parent;
line_ancestor_parent = line->parent->parent;
node = line_ancestor_parent->children.node;
while (node != line_ancestor || line_ancestor != info->tag_root)
while (line_ancestor != info->tag_root)
{
GSList *child_nodes = NULL;
GSList *tmp;
@ -4496,6 +4495,11 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
/* Create reverse-order list of nodes before
* line_ancestor
*/
if (line_ancestor_parent != NULL)
node = line_ancestor_parent->children.node;
else
node = line_ancestor;
while (node != line_ancestor && node != NULL)
{
child_nodes = g_slist_prepend (child_nodes, node);
@ -4526,11 +4530,6 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
/* Didn't find anything on this level; go up one level. */
line_ancestor = line_ancestor_parent;
line_ancestor_parent = line_ancestor->parent;
if (line_ancestor_parent != NULL)
{
node = line_ancestor_parent->children.node;
}
}
/* No dice. */