diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-07 10:53:42 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-07 10:53:42 -0500 |
commit | e43df625b98cb521b478299069c91ee0facca359 (patch) | |
tree | 552951a84d9f903d9b9c725bc88aacedc3e96f5c /pango/shape.c | |
parent | 0c25f62407f0a73274e745bb115a553c999618fc (diff) | |
download | pango-e43df625b98cb521b478299069c91ee0facca359.tar.gz |
shape: Be consistent when getting text transforms
We want last-one-wins semantics here.
Diffstat (limited to 'pango/shape.c')
-rw-r--r-- | pango/shape.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/shape.c b/pango/shape.c index ef8fe874..02f0f059 100644 --- a/pango/shape.c +++ b/pango/shape.c @@ -244,16 +244,17 @@ static PangoTextTransform find_text_transform (const PangoAnalysis *analysis) { GSList *l; + PangoTextTransform transform = PANGO_TEXT_TRANSFORM_NONE; for (l = analysis->extra_attrs; l; l = l->next) { PangoAttribute *attr = l->data; if (attr->klass->type == PANGO_ATTR_TEXT_TRANSFORM) - return (PangoTextTransform) ((PangoAttrInt*)attr)->value; + transform = (PangoTextTransform) ((PangoAttrInt*)attr)->value; } - return PANGO_TEXT_TRANSFORM_NONE; + return transform; } static gboolean |