From dfec0e85c079e4ba336ffa3b78b8aabd8d0ab883 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Thu, 13 May 1999 10:56:00 +0000 Subject: [PATCH] find position bug fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- user/wxLayout/wxllist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.0