From f90ab8dd3ec8e113b4e05e5f3ec940c04a22ccbe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Dec 2023 18:55:50 +0300 Subject: fixes #3998 (NewStory: "Copy text" should strip green mark icon) --- plugins/NewStory/src/history_control.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 0f7fd29da9..c997419ae2 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -436,13 +436,9 @@ CMStringW NewstoryListData::GatherSelected(bool bTextOnly) if (!p->m_bSelected) continue; - if (bTextOnly) - ret.Append(p->wtext); - else { // copy text only - CMStringW wszText(p->formatString()); - RemoveBbcodes(wszText); - ret.Append(wszText); - } + CMStringW wszText(bTextOnly ? p->wtext : p->formatString()); + RemoveBbcodes(wszText); + ret.Append(wszText); ret.Append(L"\r\n"); } -- cgit v1.2.3