summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
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]