[PATCH 4/5] riched20: Update editor's wordwrap state.
Huw Davies
huw at codeweavers.com
Fri Mar 19 04:14:16 CDT 2021
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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)
{
--
2.23.0
More information about the wine-devel
mailing list