summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-04-19 16:17:01 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-04-19 16:17:01 +0000
commit0dc58fb24db662cf6363c4705f00ecc945d39ed9 (patch)
tree9a2a3c34bb837a914fb1366666d8c4d79fe48781 /gtk/gtktextbtree.c
parent0ad220842b9fbf21bb048e8cc3189341d5b1bc02 (diff)
downloadgtk+-0dc58fb24db662cf6363c4705f00ecc945d39ed9.tar.gz
Don't stop the iteration up to the tag_root too early. (#109945, Dongho
2004-04-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Don't stop the iteration up to the tag_root too early. (#109945, Dongho Shin)
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r--gtk/gtktextbtree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index b956fb4992..663207e641 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -4488,8 +4488,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
line_ancestor_parent = line->parent->parent;
node = line_ancestor_parent->children.node;
- while (node != line_ancestor &&
- line_ancestor != info->tag_root)
+ while (node != line_ancestor || line_ancestor != info->tag_root)
{
GSList *child_nodes = NULL;
GSList *tmp;
@@ -4497,8 +4496,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
/* Create reverse-order list of nodes before
* line_ancestor
*/
- while (node != line_ancestor
- && node != NULL)
+ while (node != line_ancestor && node != NULL)
{
child_nodes = g_slist_prepend (child_nodes, node);