Commit 41db79a8 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: If leading with a strong character use its bidi level for our intial LayoutRTL.

parent 2c8fb3ab
......@@ -949,7 +949,10 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
if (levels)
{
layoutRTL = (psState->uBidiLevel || odd(levels[cnt]))?1:0;
if (strength[cnt] == BIDI_STRONG)
layoutRTL = (odd(levels[cnt]))?1:0;
else
layoutRTL = (psState->uBidiLevel || odd(levels[cnt]))?1:0;
pItems[index].a.fRTL = odd(levels[cnt]);
pItems[index].a.fLayoutRTL = layoutRTL;
pItems[index].a.s.uBidiLevel = levels[cnt];
......
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