From 294c9aaa1827411738d108b250cbdc9c8011d883 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 13 May 2018 11:00:29 -0500 Subject: [PATCH] call Realize() function on toolbar. --- src/GUI/Plater.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/Plater.cpp b/src/GUI/Plater.cpp index a85af6bd5..839394fe1 100644 --- a/src/GUI/Plater.cpp +++ b/src/GUI/Plater.cpp @@ -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);