Module: wine Branch: oldstable Commit: 3184473af0cdd067c2679692ac463ad014059e3f URL: https://gitlab.winehq.org/wine/wine/-/commit/3184473af0cdd067c2679692ac463ad...
Author: Jinoh Kang jinoh.kang.kr@gmail.com Date: Mon Jun 20 20:37:01 2022 +0900
riched20: Commit and wrap paragraphs after changing text properties.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53170 Signed-off-by: Jinoh Kang jinoh.kang.kr@gmail.com (cherry picked from commit 0974f047b57357252ec94bea119e5291250a446c) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/riched20/richole.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index 03572511ff7..74a484b0ebd 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; }