From a45975defd43d4bffbe314873890cc8c56e9ca4d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Oct 2023 17:05:22 +0300 Subject: NewStory: fix for correct bbcodes removing --- plugins/NewStory/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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); } } -- cgit v1.2.3