find position bug fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-05-13 10:56:00 +00:00
parent 0c34becbea
commit dfec0e85c0

View File

@ -553,7 +553,7 @@ wxLayoutLine::FindText(const wxString &needle, CoordType xpos = 0) const
relpos = text->Find(needle);
if(relpos >= cpos-xpos) // -1 if not found
{
return xpos+relpos;
return cpos+relpos;
}
}
cpos += (**i).GetLength();