]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/imaglist.cpp
check for m_parentMenu being NULL in IsChecked/Checked/Enable() too (closes #10460)
[wxWidgets.git] / src / generic / imaglist.cpp
index b285c15935b817ddef0357887e79198ec4fbe272..61fb228a2eed2402c316de07aa64b2a47b38ffcd 100644 (file)
@@ -122,7 +122,7 @@ const wxBitmap *wxGenericImageList::GetBitmapPtr( int index ) const
 {
     wxList::compatibility_iterator node = m_images.Item( index );
 
-    wxCHECK_MSG( node, (wxBitmap *) NULL, wxT("wrong index in image list") );
+    wxCHECK_MSG( node, NULL, wxT("wrong index in image list") );
 
     return (wxBitmap*)node->GetData();
 }