Fix and testcase for wxString::rfind bug I introduced.

Patch by Robert Vazan.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-09-04 21:59:48 +00:00
parent 33faea0a0d
commit 78e6050be8
2 changed files with 3 additions and 2 deletions

View File

@@ -504,8 +504,7 @@ size_t wxStringBase::rfind(const wxStringBase& str, size_t nStart) const
{
return cursor - c_str();
}
--cursor;
} while ( cursor > c_str() );
} while ( cursor-- > c_str() );
}
return npos;