From: Václav Slavík Date: Mon, 30 Sep 2013 17:12:24 +0000 (+0000) Subject: Compilation fix for !wxUSE_OWNER_DRAWN. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be10c7f969bb460dc79bd8946d59bf54c98ac660 Compilation fix for !wxUSE_OWNER_DRAWN. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index f2bcc2000e..5f461854e2 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -731,11 +731,13 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos) return false; } +#if wxUSE_OWNER_DRAWN if ( makeItemOwnerDrawn ) { SetOwnerDrawnMenuItem(GetHmenu(), pos, reinterpret_cast(pItem), TRUE); } +#endif }