]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/dbtree.cpp
handle mouse capture lost event in grid windows and reset the grid to normal state...
[wxWidgets.git] / demos / dbbrowse / dbtree.cpp
index bd2193a9eefe9b58b1fbf1edf3e96c36073758dc..751e730d0dfdc450f43e43a8544d24627db0781d 100644 (file)
@@ -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;i<pDoc->i_DSN;i++)
             {
                 if (Temp1 == (pDoc->p_DSN+i)->Dsn)