call Realize() function on toolbar.

This commit is contained in:
Joseph Lenox 2018-05-13 11:00:29 -05:00 committed by Joseph Lenox
parent 5cdc039d9f
commit 41648ef7e2

View File

@ -568,6 +568,8 @@ void Plater::build_toolbar() {
toolbar->AddTool(TB_SETTINGS, _(L"Settings…"), wxBitmap(var("cog.png"), wxBITMAP_TYPE_PNG));
toolbar->AddTool(TB_LAYERS, _(L"Layer heights…"), wxBitmap(var("variable_layer_height.png"), wxBITMAP_TYPE_PNG));
toolbar->Realize();
toolbar->Bind(wxEVT_TOOL, [this](wxCommandEvent &e) { this->add(); }, TB_ADD);
toolbar->Bind(wxEVT_TOOL, [this](wxCommandEvent &e) { this->remove(); }, TB_REMOVE);