]> git.saurik.com Git - wxWidgets.git/commitdiff
find position bug fixed
authorKarsten Ballüder <ballueder@usa.net>
Thu, 13 May 1999 10:56:00 +0000 (10:56 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 13 May 1999 10:56:00 +0000 (10:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

user/wxLayout/wxllist.cpp

index 142c2b8d2de073178ceb1abfbcd5232eef702f1b..b9a048ce77727ae3b91f7b85b5dd40d10e77d00a 100644 (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();