Skip to content

Commit

Permalink
fix ub in matrix widget
Browse files Browse the repository at this point in the history
we cannot call the member function get_control_type() until the base class is constructed.
  • Loading branch information
gfgtdf committed Dec 8, 2016
1 parent c3174b4 commit 66494fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/matrix.cpp
Expand Up @@ -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>(
Expand Down

0 comments on commit 66494fc

Please sign in to comment.