Module: wine Branch: master Commit: 68c5f747db3757e637f4e37b630ff0757b6dd360 URL: https://source.winehq.org/git/wine.git/?a=commit;h=68c5f747db3757e637f4e37b6...
Author: Huw Davies huw@codeweavers.com Date: Fri Mar 19 09:14:16 2021 +0000
riched20: Update editor's wordwrap state.
Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/riched20/txtsrv.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c index eee55462ef2..5a8929e6c67 100644 --- a/dlls/riched20/txtsrv.c +++ b/dlls/riched20/txtsrv.c @@ -358,6 +358,8 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange( ITextServic TRACE( "%p, mask %08x, bits %08x\n", services, mask, bits );
services->editor->props = (services->editor->props & ~mask) | (bits & mask); + if (mask & (TXTBIT_WORDWRAP | TXTBIT_MULTILINE)) + services->editor->bWordWrap = (services->editor->props & TXTBIT_WORDWRAP) && (services->editor->props & TXTBIT_MULTILINE);
if (mask & TXTBIT_SCROLLBARCHANGE) {