diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-04 17:05:22 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-04 17:05:22 +0300 |
commit | a45975defd43d4bffbe314873890cc8c56e9ca4d (patch) | |
tree | dc471fd9d5a66a7705dc11d6c253a5bfa99acc66 | |
parent | d9c207c8bc8cb949572965cf81837180c55850e3 (diff) |
NewStory: fix for correct bbcodes removing
-rw-r--r-- | plugins/NewStory/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/utils.cpp b/plugins/NewStory/src/utils.cpp index 1479fb96c5..bb2d788b35 100644 --- a/plugins/NewStory/src/utils.cpp +++ b/plugins/NewStory/src/utils.cpp @@ -69,8 +69,8 @@ void RemoveBbcodes(CMStringW &wszText) if (it.pEnd) { int idx2 = wszText.Find(it.pEnd, idx); if (idx2 != -1) { - wszText.Delete(idx2 - idx); - wszText.Delete((int)it.cbEnd); + wszText.Delete(idx, idx2 - idx); + wszText.Delete(idx, (int)it.cbEnd); } } |