diff --git a/src/gui/control/graph.cpp b/src/gui/control/graph.cpp index d96cd1f2..aea94f6c 100644 --- a/src/gui/control/graph.cpp +++ b/src/gui/control/graph.cpp @@ -864,6 +864,7 @@ void GraphContainer::add(const GraphP& graph) { GraphControl::GraphControl(Window* parent, int id) : wxControl(parent, id, wxDefaultPosition, wxDefaultSize, wxWANTS_CHARS) + , layout(GRAPH_TYPE_BAR) {} void GraphControl::setLayout(GraphType type, bool force) {