From c01d5de838da68f602ede699050962072e412ab2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 May 2006 22:48:15 +0000 Subject: [PATCH] fix for popup menus (part of patch 1238355) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xh_menu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xrc/xh_menu.cpp b/src/xrc/xh_menu.cpp index 47e5494d7c..12d8b4a321 100644 --- a/src/xrc/xh_menu.cpp +++ b/src/xrc/xh_menu.cpp @@ -37,7 +37,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource() { if (m_class == wxT("wxMenu")) { - wxMenu *menu = new wxMenu(GetStyle()); + wxMenu *menu = m_instance ? wxStaticCast(m_instance, wxMenu) + : new wxMenu(GetStyle()); + wxString title = GetText(wxT("label")); wxString help = GetText(wxT("help")); -- 2.45.2