summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-02-09 14:55:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-02-09 14:55:11 +0000
commit575835ba425ccd571b4283f6c463591a529e8bf9 (patch)
tree48e37d0f61f48f99e41bfcc17bef01eb496d1405
parent19a87cc237b77b86dda507b72ca4be09666ea235 (diff)
downloadpango-575835ba425ccd571b4283f6c463591a529e8bf9.tar.gz
Fix infinite loop introduced with last change. (#133749, reported by
Mon Feb 9 09:52:24 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_next): Fix infinite loop introduced with last change. (#133749, reported by Mariano Suárez-Alvarez)
-rw-r--r--pango/pango-attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 2fb187c9..e2441ac9 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1281,8 +1281,8 @@ pango_attr_iterator_next (PangoAttrIterator *iterator)
{
iterator->attribute_stack = g_list_prepend (iterator->attribute_stack, iterator->next_attribute->data);
iterator->end_index = MIN (iterator->end_index, ((PangoAttribute *)iterator->next_attribute->data)->end_index);
- iterator->next_attribute = iterator->next_attribute->next;
}
+ iterator->next_attribute = iterator->next_attribute->next;
}
if (iterator->next_attribute)