summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-06-21 19:46:32 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-06-21 19:46:32 +0000
commit4d48d045a04c054c88fa09a578bd66cec54f8d42 (patch)
treea7398c7da63396bcb4f45324c09d31428fb916f3 /pango/pango-context.c
parenta397495f91e6aa3455264cd122f5628a49c44b9c (diff)
downloadpango-4d48d045a04c054c88fa09a578bd66cec54f8d42.tar.gz
Initialize state->lang from context->language if not otherwise set.
Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (update_attr_iterator): Initialize state->lang from context->language if not otherwise set. Without doing this, the default language tag was, not suprisingly, having no effect! (#137334, Frederic Zhang) * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix typo in doc comment.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index ea5dd83e..5f0ec379 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -619,6 +619,9 @@ update_attr_iterator (ItemizeState *state)
&state->lang, &state->extra_attrs);
state->copy_extra_attrs = FALSE;
+ if (!state->lang)
+ state->lang = state->context->language;
+
fallback = find_attribute (state->extra_attrs, PANGO_ATTR_FALLBACK);
state->enable_fallback = (fallback == NULL || ((PangoAttrInt *)fallback)->value);