summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-23 20:18:49 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-23 20:18:49 +0300
commit8f5a02b12a78d37a1aa175570c0742e86f6afd20 (patch)
tree911d11913b18bb235d152588233a17eb93aae9dc
parentdc597d70cef7202480eae6708e2142148e09356f (diff)
fixes #4205 (tabSRMM: copy text with color)
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp4
1 files changed, 3 insertions, 1 deletions
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));
}
}