fix wxString::Replace when new strings are longer than old string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-04-11 09:05:40 +00:00
parent ea38ef4b5c
commit 2df0258e2b
2 changed files with 4 additions and 4 deletions

View File

@@ -1551,8 +1551,8 @@ size_t wxString::Replace(const wxChar *szOld,
//replace this occurance of the old string with the new one
replace(dwPos, uiOldLen, szNew, uiNewLen);
//move up pos past the old string
dwPos += uiOldLen;
//move up pos past the string that was replaced
dwPos += uiNewLen;
//increase replace count
++uiCount;