summaryrefslogtreecommitdiff
path: root/pango/ellipsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/ellipsize.c')
-rw-r--r--pango/ellipsize.c4
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))