Commit e2d4cf9e authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Fix next index for RTL MultipleSubst.

MultipleSubst will expand the glyph array to the right, so when the writing direction is RTL the next index does not need to be modified by the new count of glyphs. Signed-off-by: 's avatarAric Stewart <aric@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 0401bdfa
...@@ -940,7 +940,10 @@ static INT GSUB_apply_MultipleSubst(const OT_LookupTable *look, WORD *glyphs, IN ...@@ -940,7 +940,10 @@ static INT GSUB_apply_MultipleSubst(const OT_LookupTable *look, WORD *glyphs, IN
TRACE("\n"); TRACE("\n");
} }
return glyph_index + (sub_count * write_dir); if (write_dir > 0)
return glyph_index + sub_count;
else
return glyph_index - 1;
} }
} }
return GSUB_E_NOGLYPH; return GSUB_E_NOGLYPH;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment