diff options
author | George Hazan <george.hazan@gmail.com> | 2024-02-24 18:57:15 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-02-24 18:57:15 +0300 |
commit | 1beaee1f0efba88cbea9f1a93627fcce164b17e7 (patch) | |
tree | 45bc906722425ba755a7cbd13bf9a2a475a98906 /src | |
parent | 6e84923386ed8c4ae352b7621ecfdc22d7955afd (diff) |
fixes #4226 (Баг с RTF копированием )
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/Windows/CCtrlRichEdit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/Windows/CCtrlRichEdit.cpp b/src/mir_core/src/Windows/CCtrlRichEdit.cpp index a13b992c36..d1a761781b 100644 --- a/src/mir_core/src/Windows/CCtrlRichEdit.cpp +++ b/src/mir_core/src/Windows/CCtrlRichEdit.cpp @@ -92,9 +92,9 @@ static DWORD CALLBACK MessageStreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, L char* CCtrlRichEdit::GetRichTextRtf(bool bText, bool bSelection) const
{
char *pszText = nullptr;
- uint32_t dwFlags = SF_USECODEPAGE | (CP_UTF8 << 16);
+ uint32_t dwFlags = 0;
if (bText)
- dwFlags |= SF_TEXT;
+ dwFlags |= SF_USECODEPAGE | (CP_UTF8 << 16) / SF_TEXT;
else
dwFlags |= SF_RTFNOOBJS | SFF_PLAINRTF;
if (bSelection)
|