Project

General

Profile

Bug #2554

WMenuItem crash with new ifndef WT_CNOR code

Added by Velvet Jones about 9 years ago. Updated almost 9 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

#1

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.

#2

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

Updated by Koen Deforche almost 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF