Project

General

Profile

Actions

Bug #2554

closed

WMenuItem crash with new ifndef WT_CNOR code

Added by Velvet Jones almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/14/2014
Due date:
% Done:

0%

Estimated time:

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

Actions #1

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.

Actions #2

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
Actions #3

Updated by Koen Deforche almost 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF