From 8f5a02b12a78d37a1aa175570c0742e86f6afd20 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Feb 2024 20:18:49 +0300 Subject: fixes #4205 (tabSRMM: copy text with color) --- plugins/TabSRMM/src/msgdlgother.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index 2d9bd9b669..5e728eedc1 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -3029,7 +3029,9 @@ LRESULT CMsgDialog::WMCopyHandler(UINT msg, WPARAM wParam, LPARAM lParam) ptrW converted(mir_utf8decodeW(szFromStream)); if (converted != nullptr) { Utils::FilterEventMarkers(converted); - Utils_ClipboardCopy(MClipUnicode(converted)); + + ptrA szRtf(LOG()->GetRichTextRtf(false, true)); + Utils_ClipboardCopy(MClipUnicode(converted) + MClipRtf(szRtf)); } } -- cgit v1.2.3