summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-17 19:29:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-17 19:29:55 -0400
commit7bde0af1218a6729ac475b70a8eb571d6c1b5da5 (patch)
tree31341b0190d0ec474991973fcb224703c0a07b50 /pango/pango-glyph-item.c
parent1e5d0344fed0766923a8523d475770b53fa16f9d (diff)
downloadpango-7bde0af1218a6729ac475b70a8eb571d6c1b5da5.tar.gz
glyph iter: Adjust assertions
With the inserted hyphens we end up in a situation where we have start_char == end_char at the end of an item. It seems to be otherwise harmless.
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 586b23ba..eb880608 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -316,7 +316,7 @@ pango_glyph_item_iter_next_cluster (PangoGlyphItemIter *iter)
iter->end_glyph = glyph_index;
- g_assert (iter->start_char < iter->end_char);
+ g_assert (iter->start_char <= iter->end_char);
g_assert (iter->end_char <= item->num_chars);
return TRUE;
@@ -409,7 +409,7 @@ pango_glyph_item_iter_prev_cluster (PangoGlyphItemIter *iter)
iter->start_glyph = glyph_index;
- g_assert (iter->start_char < iter->end_char);
+ g_assert (iter->start_char <= iter->end_char);
g_assert (0 <= iter->start_char);
return TRUE;