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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user