]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Quiet cooperation between MSW and wxGL.
[wxWidgets.git] / src / msw / listctrl.cpp
index 8022ba2992ffe2b791c36173e0fe825453505685..302d90a5eab13a2410a52ded4cbe283524f8d47a 100644 (file)
@@ -2376,9 +2376,9 @@ wxString wxListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) cons
 
 int wxListCtrl::OnGetItemImage(long WXUNUSED(item)) const
 {
-    // same as above
-    wxFAIL_MSG( _T("wxListCtrl::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;
 }