Project

General

Profile

Actions

Bug #7536

closed

WSelectionBox constructor does not call the WComboBox constructor

Added by Gavin Blakeman about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/24/2020
Due date:
% Done:

0%

Estimated time:

Description

There is some essential setup that occurs in the WComboBox constructor that does not occur when the constructor for the WSelectionBox is called. Specifically a model is not created, leaving the model pointer in a nullptr state. There are no checks for nullptr in functions like clear().

WSelectionBox::WSelectionBox()

: verticalSize_(5),

selectionMode_(SelectionMode::Single),

configChanged_(false)

{

noSelectionEnabled_ = true;

}

Actions #1

Updated by Roel Standaert about 4 years ago

  • Status changed from New to Closed

Yes it does. If the constructor of the base class is not specified, the default constructor is used.

Actions

Also available in: Atom PDF