fix ub in matrix widget
we cannot call the member function get_control_type() until the base class is constructed.
This commit is contained in:
parent
c3174b45ef
commit
66494fc34f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ unsigned state_default::get_state() const
|
|||
}
|
||||
|
||||
matrix::matrix(const implementation::builder_matrix& builder)
|
||||
: tbase(builder, get_control_type()), content_(), pane_(nullptr)
|
||||
: tbase(builder, "matrix"), content_(), pane_(nullptr)
|
||||
{
|
||||
std::shared_ptr<const matrix_definition::resolution>
|
||||
cfg = std::static_pointer_cast<const matrix_definition::resolution>(
|
||||
|
|
Loading…
Add table
Reference in a new issue