[PATCH 2/2] riched20: Set the base embedding level for RTL paragraphs.
Huw Davies
huw at codeweavers.com
Thu Mar 10 05:59:42 CST 2016
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/riched20/wrap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index e8575fdb..49a62ce 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -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,
--
2.7.0
More information about the wine-patches
mailing list