X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..86033c4b6f77916326ab7e04fb96b4e12ba5afbd:/demos/dbbrowse/dbtree.cpp diff --git a/demos/dbbrowse/dbtree.cpp b/demos/dbbrowse/dbtree.cpp index bd2193a9ee..751e730d0d 100644 --- a/demos/dbbrowse/dbtree.cpp +++ b/demos/dbbrowse/dbtree.cpp @@ -275,7 +275,7 @@ void DBTree::OnSelChanged(wxTreeEvent& WXUNUSED(event)) //------------------------------------------------------------------------------------- if (Temp1.Contains(_T("ODBC-"))) { - Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN); + Temp1 = Temp1.Mid(5); for (i=0;ii_DSN;i++) { if (Temp1 == (pDoc->p_DSN+i)->Dsn)