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:
@@ -553,7 +553,7 @@ wxLayoutLine::FindText(const wxString &needle, CoordType xpos = 0) const
|
|||||||
relpos = text->Find(needle);
|
relpos = text->Find(needle);
|
||||||
if(relpos >= cpos-xpos) // -1 if not found
|
if(relpos >= cpos-xpos) // -1 if not found
|
||||||
{
|
{
|
||||||
return xpos+relpos;
|
return cpos+relpos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cpos += (**i).GetLength();
|
cpos += (**i).GetLength();
|
||||||
|
Reference in New Issue
Block a user