summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-01 18:55:50 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-01 18:55:50 +0300
commitf90ab8dd3ec8e113b4e05e5f3ec940c04a22ccbe (patch)
treee7647fe94af3dc81eb8cb5577c585cf898d9e00a /plugins/NewStory/src
parent61d96b9fd71a956f745a44677d778bb622efb725 (diff)
fixes #3998 (NewStory: "Copy text" should strip green mark icon)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history_control.cpp10
1 files 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");
}