Bug #12596 2007-12-02 12:53
jlblanco
Code generates "new wxMenuItem()" instead of "new wxMenu()"
SUMMARY:
==================
Wrong automatically generated code for submenus with class "wxMenu", while they are initialized with a "=new wxMenuItem();".
HOW TO REPRODUCE:
==================
Create a new wxWidgets project, Frame based. Open the default menu with wxSmith, and add new menu items, one of them with submenus. Compile, and we obtain:
: error: cannot convert wxMenuItem* to wxMenu* in assignment
in the code:
MenuItem3 = new wxMenuItem();
Where "MenuItem3" has class wxMenu (correct), the "wxs" file contains the XML tag class="wxMenu" (correct), but when generating the code we get the code above (incorrect, has to be manually changed to "=new wxMenu()").
- Category
- Plugin::wxSmith
- Group
- Status
- Closed
- Close date
- 2007-12-21 23:05
- Assigned to
- byo
History
This bug is now fixed in HEAD.
Thank you for reporting it.