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:
@@ -37,7 +37,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
|
|||||||
{
|
{
|
||||||
if (m_class == wxT("wxMenu"))
|
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 title = GetText(wxT("label"));
|
||||||
wxString help = GetText(wxT("help"));
|
wxString help = GetText(wxT("help"));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user