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:
parent
0c34becbea
commit
dfec0e85c0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user