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
This commit is contained in:
parent
68d76e7385
commit
c01d5de838
@ -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"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user