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

This commit is contained in:
Aric Stewart 2011-11-17 09:40:54 -07:00 committed by Alexandre Julliard
parent 2c8fb3aba1
commit 41db79a855
1 changed files with 4 additions and 1 deletions

View File

@ -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];