X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17867d61dcd061d3f39872446bc00c63d8a2a815..4ca9b362cd539ab0c3d38a027e889d3b48168578:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index ed1c2e255b..5b7d3480f4 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2033,7 +2033,7 @@ long wxListMainWindow::GetNextItem( long item, int WXUNUSED(geometry), int state { long ret = 0; if (item > 0) ret = item; - if(item >= GetItemCount()) return -1; + if(ret >= GetItemCount()) return -1; wxNode *node = m_lines.Nth( ret ); while (node) { @@ -2063,7 +2063,7 @@ void wxListMainWindow::DeleteItem( long index ) void wxListMainWindow::DeleteColumn( int col ) { wxCHECK_RET( col < (int)m_columns.GetCount(), - "attempting to delete inexistent column in wxListView" ); + _T("attempting to delete inexistent column in wxListView") ); m_dirty = TRUE; wxNode *node = m_columns.Nth( col );