X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f1ea0eeda0b1eb9178931f6338d6eb8d8fa9ab9..8a4df1595bc8ce70286afe99f122f64916790ad4:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 7dc0dd3c52..65f568eb3b 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1146,7 +1146,7 @@ void wxListMainWindow::DeleteLine( wxListLineData *line ) void wxListMainWindow::EditLabel( long item ) { wxNode *node = m_lines.Nth( item ); - wxCHECK_MSG( node, (wxTextCtrl *)NULL, _T("wrong index in wxListCtrl::Edit()") ); + wxCHECK_RET( node, _T("wrong index in wxListCtrl::Edit()") ); m_currentEdit = (wxListLineData*) node->Data();