[pango/pango2: 99/301] ellipsize: Fix an oversight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 99/301] ellipsize: Fix an oversight
- Date: Wed, 22 Jun 2022 15:53:36 +0000 (UTC)
commit cb90790a877a8c2a52f5fe5d4c3bf33526e3a773
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 25 21:20:33 2022 -0500
ellipsize: Fix an oversight
Fix a G_MAXINT <> G_MAXUINT confusion by using
the proper define here.
pango/ellipsize.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/ellipsize.c b/pango/ellipsize.c
index 939c9cda7..509a515cb 100644
--- a/pango/ellipsize.c
+++ b/pango/ellipsize.c
@@ -345,8 +345,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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]