diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-02 19:30:31 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-02 19:30:31 +0300 |
commit | f848419d66312abfcd32d26db138566b2359e468 (patch) | |
tree | 1595327b5a9ba3629689ce0118c59ade8d9db257 /plugins | |
parent | f74e6540fd9845f498c52f8b5d9631e52a4a1dc1 (diff) |
NewStory: don't include bbcodes in quotes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 029a1ea12f..1ad5bb1f38 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -617,8 +617,11 @@ void NewstoryListData::RecalcScrollBar() void NewstoryListData::Quote() { if (pMsgDlg) - if (auto *pItem = LoadItem(caret)) - pMsgDlg->SetMessageText(Srmm_Quote(pItem->wtext)); + if (auto *pItem = LoadItem(caret)) { + CMStringW wszText(pItem->wtext); + RemoveBbcodes(wszText); + pMsgDlg->SetMessageText(Srmm_Quote(wszText)); + } } void NewstoryListData::ScheduleDraw() |