diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-10-20 15:12:23 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-10-20 15:14:33 -0700 |
commit | bae491c03a00757d83ede8d855b7d85d246bde3d (patch) | |
tree | c834dace4d8d0cf7e0ba884848604fee801309a2 | |
parent | 5deafc828f0892d6c75f12067bc366cc70475802 (diff) | |
download | harfbuzz-bae491c03a00757d83ede8d855b7d85d246bde3d.tar.gz |
Fix Harfbuzz hb_utf16_script_run_prev()android-sdk-adt_r20android-sdk-4.0.3_r1android-sdk-4.0.3-tools_r1android-cts-verifier-4.0_r1android-cts-verifier-4.0.3_r1android-cts-4.0.3_r2android-cts-4.0.3_r1android-4.0.4_r2.1android-4.0.4_r2android-4.0.4_r1.2android-4.0.4_r1.1android-4.0.4_r1android-4.0.3_r1.1android-4.0.3_r1tools_r20ics-plus-aospics-mr1-releaseics-mr1
- fix the condition for setting the script
Change-Id: Id8d7da34bad485d2e0a1e34cc7ebb831a73a6be6
-rwxr-xr-x | contrib/harfbuzz-unicode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/harfbuzz-unicode.c b/contrib/harfbuzz-unicode.c index 2953a85..0a34b65 100755 --- a/contrib/harfbuzz-unicode.c +++ b/contrib/harfbuzz-unicode.c @@ -164,7 +164,10 @@ hb_utf16_script_run_prev(unsigned *num_code_points, HB_ScriptItem *output, const HB_Script script = code_point_to_script(cp); if (script != current_script) { - if (current_script == init_script == HB_Script_Inherited) { + /* BEGIN android-changed + The condition was not correct by doing "a == b == constant" + END android-changed */ + if (current_script == HB_Script_Inherited && init_script == HB_Script_Inherited) { // If we started off as inherited, we take whatever we can find. output->script = script; current_script = script; |