X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aba3d35e7bf1309c58d9e3942437c00fbb167355..5b952139e838585734114dd147f7747d6084a0af:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e5b8353e68..7ef33c8341 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5383,9 +5383,9 @@ wxString wxGenericListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col int wxGenericListCtrl::OnGetItemImage(long WXUNUSED(item)) const { - // same as above - wxFAIL_MSG( _T("wxGenericListCtrl::OnGetItemImage not supposed to be called") ); - + wxCHECK_MSG(!GetImageList(wxIMAGE_LIST_SMALL), + -1, + wxT("List control has an image list, OnGetItemImage should be overridden.")); return -1; }