diff options
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 10 |
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"); } |