X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3037523a7c04198b5ba1a27407213d66b570ce9d..abd9b10e390de62e8b9060ba5ed002c943a67d59:/contrib/src/xrc/xh_menu.cpp diff --git a/contrib/src/xrc/xh_menu.cpp b/contrib/src/xrc/xh_menu.cpp index ec9a9d0f5f..80a992acfa 100644 --- a/contrib/src/xrc/xh_menu.cpp +++ b/contrib/src/xrc/xh_menu.cpp @@ -85,11 +85,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource() wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel, GetText(wxT("help")), kind); -#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__) -#if wxUSE_OWNER_DRAWN +#if wxCHECK_VERSION(2,3,0) || (defined(__WXMSW__) && wxUSE_OWNER_DRAWN) if (HasParam(wxT("bitmap"))) mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU)); -#endif #endif p_menu->Append(mitem); mitem->Enable(GetBool(wxT("enabled"), TRUE));