diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-05-30 00:06:59 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-05-30 00:06:59 +0000 |
commit | 016742e2b297c6c45fc37e2b8f93f938cd1a1bf4 (patch) | |
tree | d4cd06a27116a7b04f977a1c030771536030fabc /pango/pango-glyph-item.c | |
parent | 09be01a3630651cea9cc380299fba9ef6d5a6c98 (diff) | |
download | pango-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.c | 4 |
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] |