summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-11-01 13:33:18 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-11-01 13:33:18 -0400
commit93d8573ddcf97648983a1c1b5cdda8a3ec6d4432 (patch)
tree0ed87733df7a5ea86665a3c77f03bdd607fa855b /contrib
parentff0612c2e7df1b86fc702c72e3015a6a5ae39b4c (diff)
Fix bug in contrib/harfbuzz-unicode.c
Diffstat (limited to 'contrib')
-rw-r--r--contrib/harfbuzz-unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/harfbuzz-unicode.c b/contrib/harfbuzz-unicode.c
index 049e0ca..ce4f8e2 100644
--- a/contrib/harfbuzz-unicode.c
+++ b/contrib/harfbuzz-unicode.c
@@ -165,7 +165,7 @@ 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) {
+ 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;