[PATCH 1/1] riched20: Commit and wrap paragraphs after changing text properties.

Jinoh Kang wine at gitlab.winehq.org
Mon Jun 20 06:40:00 CDT 2022


From: Jinoh Kang <jinoh.kang.kr at gmail.com>

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53170
Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
---
 dlls/riched20/richole.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index 3d88b8a65b0..afecd34dc2a 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -647,6 +647,9 @@ static void textrange_set_font(ITextRange *range, ITextFont *font)
         cursor_from_char_ofs( services->editor, start, &from );
         cursor_from_char_ofs( services->editor, end, &to );
         ME_SetCharFormat( services->editor, &from, &to, &fmt );
+        ME_CommitUndo( services->editor );
+        ME_WrapMarkedParagraphs( services->editor );
+        ME_UpdateScrollBar( services->editor );
     }
 }
 
@@ -805,6 +808,9 @@ static HRESULT set_textfont_prop(ITextFontImpl *font, enum textfont_prop_id prop
     cursor_from_char_ofs( services->editor, start, &from );
     cursor_from_char_ofs( services->editor, end, &to );
     ME_SetCharFormat( services->editor, &from, &to, &fmt );
+    ME_CommitUndo( services->editor );
+    ME_WrapMarkedParagraphs( services->editor );
+    ME_UpdateScrollBar( services->editor );
 
     return S_OK;
 }
-- 
GitLab

https://gitlab.winehq.org/wine/wine/-/merge_requests/284



More information about the wine-devel mailing list