summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-06-02 16:14:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-06-02 16:14:11 +0000
commitb6ee23a6f190ee625d2b2bdb3f50fa1d3fc6c58e (patch)
treebcdc5a76e10612c41964ab9df7d0fd3cfbcb3e5e /pango/pango-glyph-item.c
parent820b78f3e8360ca723d6df2df54893d0dd51d3b4 (diff)
downloadpango-b6ee23a6f190ee625d2b2bdb3f50fa1d3fc6c58e.tar.gz
Don't put statements with side-effects inside g_assert()! (#114137, Jeff
Mon Jun 2 12:10:11 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c (pango_glyph_item_apply_attrs): Don't put statements with side-effects inside g_assert()! (#114137, Jeff Waugh)
Diffstat (limited to 'pango/pango-glyph-item.c')
-rw-r--r--pango/pango-glyph-item.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index c1b40aa9..087f0fa6 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -315,8 +315,8 @@ pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
pango_attr_iterator_range (iter, &range_start, &range_end);
if (range_end > state.cluster_end)
break;
-
- g_assert (pango_attr_iterator_next (iter));
+
+ pango_attr_iterator_next (iter);
}
state.segment_attrs = pango_attr_iterator_get_attrs (iter);
@@ -363,7 +363,7 @@ pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
if (range_end > state.cluster_end) /* Range intersects next cluster */
break;
- g_assert (pango_attr_iterator_next (iter));
+ pango_attr_iterator_next (iter);
pango_attr_iterator_range (iter, &range_start, &range_end);
if (range_start >= state.cluster_end) /* New range doesn't intersect this cluster */