Creating new revision to retag with WX_2_6_0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-04-24 10:06:23 +00:00
parent ac2ad3babc
commit c0594d091c

View File

@@ -3601,11 +3601,7 @@ wxWindowMSW::MSWOnDrawItem(int WXUNUSED_UNLESS_ODRAWN(id),
{
wxMenuItem *pMenuItem = (wxMenuItem *)(pDrawStruct->itemData);
// see comment before the same test in MSWOnMeasureItem() below
if ( !pMenuItem )
return false;
wxCHECK_MSG( wxDynamicCast(pMenuItem, wxMenuItem),
wxCHECK_MSG( pMenuItem && pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)),
false, _T("MSWOnDrawItem: bad wxMenuItem pointer") );
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent