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:
@@ -3601,7 +3601,11 @@ wxWindowMSW::MSWOnDrawItem(int WXUNUSED_UNLESS_ODRAWN(id),
|
|||||||
{
|
{
|
||||||
wxMenuItem *pMenuItem = (wxMenuItem *)(pDrawStruct->itemData);
|
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") );
|
false, _T("MSWOnDrawItem: bad wxMenuItem pointer") );
|
||||||
|
|
||||||
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent
|
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent
|
||||||
|
Reference in New Issue
Block a user