diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 21:20:33 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 21:20:33 -0500 |
commit | d66a420e6bcaa19fdc3361e31c16679355328afc (patch) | |
tree | c59b5819ea03ec79c416e8a9c08fe49e63e64bac | |
parent | 32ee6dacf464ad1f21422124edef4711263cc344 (diff) | |
download | pango-d66a420e6bcaa19fdc3361e31c16679355328afc.tar.gz |
ellipsize: Fix an oversight
Fix a G_MAXINT <> G_MAXUINT confusion by using
the proper define here.
-rw-r--r-- | pango/ellipsize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/ellipsize.c b/pango/ellipsize.c index c58efc34..a696312a 100644 --- a/pango/ellipsize.c +++ b/pango/ellipsize.c @@ -343,8 +343,8 @@ shape_ellipsis (EllipsizeState *state) for (l = run_attrs; l; l = l->next) { PangoAttribute *attr = l->data; - attr->start_index = 0; - attr->end_index = G_MAXINT; + attr->start_index = PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING; + attr->end_index = PANGO_ATTR_INDEX_TO_TEXT_END; if (pango_attribute_affects_itemization (attr, NULL) || pango_attribute_affects_break_or_shape (attr, NULL)) |