Commits

Anonymous committed bae491c

Fix Harfbuzz hb_utf16_script_run_prev()

- fix the condition for setting the script

Change-Id: Id8d7da34bad485d2e0a1e34cc7ebb831a73a6be6

  • Participants
  • Parent commits 5deafc8

Comments (0)

Files changed (1)

contrib/harfbuzz-unicode.c

     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;