riched20: Set the base embedding level for RTL paragraphs.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-03-10 11:59:42 +00:00 committed by Alexandre Julliard
parent ac5edd1b6b
commit a2c57a2a8a
1 changed files with 5 additions and 0 deletions

View File

@ -746,6 +746,11 @@ static HRESULT itemize_para( ME_Context *c, ME_DisplayItem *p )
assert( p->type == diParagraph );
if (para->pFmt->dwMask & PFM_RTLPARA && para->pFmt->wEffects & PFE_RTLPARA)
state.uBidiLevel = 1;
TRACE( "Base embedding level %d\n", state.uBidiLevel );
while (1)
{
hr = ScriptItemize( para->text->szData, para->text->nLen, items_passed, &control,