]> git.saurik.com Git - wxWidgets.git/blobdiff - user/wxLayout/wxllist.cpp
first text (header lines) in M get malformatted
[wxWidgets.git] / 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();