Bug #2554
WMenuItem crash with new ifndef WT_CNOR code
Description
In git HEAD there's a SIGSEGV caused by a null pointer in:
WMenuItem::create (const std::string& iconPath, const WString& text, WWidget *contents, LoadPolicy policy)
When called from constructor:
WMenuItem::WMenuItem (const WString& label, WWidget *contents = 0, LoadPolicy policy = LazyLoading)
...if the constructor's default arguments are used (i.e., the menu item is constructed with a label only)
The 'contents' variable is referenced as a null pointer. I suppose that if default arguments are available for a constructor, they should not cause a crash.
- Bud
Updated by Wim Dumon about 9 years ago
Can you retry with latest git? We've made some modifications in that area.
Thank you!
Wim.
Updated by Koen Deforche almost 9 years ago
- Status changed from New to Resolved
- Assignee set to Wim Dumon
- Target version set to 3.3.2