Restored previous revision after retag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c0594d091c
commit
2d29bf54f1
@ -3601,7 +3601,11 @@ wxWindowMSW::MSWOnDrawItem(int WXUNUSED_UNLESS_ODRAWN(id),
|
||||
{
|
||||
wxMenuItem *pMenuItem = (wxMenuItem *)(pDrawStruct->itemData);
|
||||
|
||||
wxCHECK_MSG( pMenuItem && pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)),
|
||||
// see comment before the same test in MSWOnMeasureItem() below
|
||||
if ( !pMenuItem )
|
||||
return false;
|
||||
|
||||
wxCHECK_MSG( wxDynamicCast(pMenuItem, wxMenuItem),
|
||||
false, _T("MSWOnDrawItem: bad wxMenuItem pointer") );
|
||||
|
||||
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent
|
||||
|
Loading…
Reference in New Issue
Block a user