summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-13 22:06:05 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-13 22:06:05 +0000
commit4716df68c6bd9bde071991ccee4893bdd621618f (patch)
tree3640dc0d77f9b08032ccf0d05962e91655f59f24
parent18699c9c3e4cd53db3a14e1a06f121fed528888a (diff)
downloadpango-4716df68c6bd9bde071991ccee4893bdd621618f.tar.gz
Bug 355550 – Miscalculation of logical attributes in
2006-09-13 Behdad Esfahbod <behdad@gnome.org> Bug 355550 – Miscalculation of logical attributes in pango_get_log_attrs() Patch from Theppitak Karoonboonyanan * pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to pango_break().
-rw-r--r--ChangeLog9
-rw-r--r--pango/break.c5
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 80534be9..883962b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
+ Bug 355550 – Miscalculation of logical attributes in
+ pango_get_log_attrs()
+ Patch from Theppitak Karoonboonyanan
+
+ * pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
+ pango_break().
+
+2006-09-13 Behdad Esfahbod <behdad@gnome.org>
+
Bug 355697 – The IndicOTClassTable of Oriya has a error.
* modules/indic/indic-ot-class-tables.c: Compute lastChar from
diff --git a/pango/break.c b/pango/break.c
index a333c272..5dd67cd6 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1666,8 +1666,7 @@ pango_get_log_attrs (const char *text,
g_assert (end - pos < length);
script = pango_script_for_unichar (g_utf8_get_char (pos));
- analysis.lang_engine =
- (PangoEngineLang*) pango_map_get_engine (lang_map, script);
+ range_engine = (PangoEngineLang*) pango_map_get_engine (lang_map, script);
if (range_engine != analysis.lang_engine)
{
@@ -1683,7 +1682,7 @@ pango_get_log_attrs (const char *text,
chars_broken += chars_in_range;
range_start = pos;
- range_engine = analysis.lang_engine;
+ analysis.lang_engine = range_engine;
chars_in_range = 1;
}
else