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:
gfgtdf 2016-12-08 22:48:36 +01:00 committed by GitHub
parent c3174b45ef
commit 66494fc34f

View file

@ -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>(