Actions
Bug #2554
closedWMenuItem 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 almost 11 years ago
Can you retry with latest git? We've made some modifications in that area.
Thank you!
Wim.
Updated by Koen Deforche almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Wim Dumon
- Target version set to 3.3.2
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed
Actions