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();