summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-05-30 00:06:59 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-05-30 00:06:59 +0000
commit016742e2b297c6c45fc37e2b8f93f938cd1a1bf4 (patch)
treed4cd06a27116a7b04f977a1c030771536030fabc /pango/pango-glyph-item.c
parent09be01a3630651cea9cc380299fba9ef6d5a6c98 (diff)
downloadpango-016742e2b297c6c45fc37e2b8f93f938cd1a1bf4.tar.gz
Fix a stupid bug in the shortcircuit case.
Thu May 29 20:05:45 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c: Fix a stupid bug in the shortcircuit case.
Diffstat (limited to 'pango/pango-glyph-item.c')
-rw-r--r--pango/pango-glyph-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index a18dd0d9..c1b40aa9 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -319,6 +319,8 @@ pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
g_assert (pango_attr_iterator_next (iter));
}
+ state.segment_attrs = pango_attr_iterator_get_attrs (iter);
+
/* Short circuit the case when we don't actually need to
* split the item
*/
@@ -326,8 +328,6 @@ pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
range_end >= glyph_item->item->offset + glyph_item->item->length)
goto out;
- state.segment_attrs = pango_attr_iterator_get_attrs (iter);
-
while (TRUE)
{
/* Find the next logical cluster; [range_start,range_end]