From: Karsten Ballüder Date: Thu, 13 May 1999 10:56:00 +0000 (+0000) Subject: find position bug fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dfec0e85c079e4ba336ffa3b78b8aabd8d0ab883 find position bug fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/user/wxLayout/wxllist.cpp b/user/wxLayout/wxllist.cpp index 142c2b8d2d..b9a048ce77 100644 --- a/user/wxLayout/wxllist.cpp +++ b/user/wxLayout/wxllist.cpp @@ -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();