From ceea83720a7a65d0c56efa7eab49f668fbe0bb4b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 25 Jan 2019 08:37:06 +0100 Subject: [PATCH] Fixed build on OSX & Linux --- src/slic3r/GUI/Plater.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 530b64474..2ecb37211 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1596,8 +1596,10 @@ void Plater::priv::selection_changed() // if the selection is not valid to allow for layer editing, we need to turn off the tool if it is running bool enable_layer_editing = layers_height_allowed(); - if (!enable_layer_editing && view3D->is_layers_editing_enabled()) - on_action_layersediting(SimpleEvent(EVT_GLTOOLBAR_LAYERSEDITING)); + if (!enable_layer_editing && view3D->is_layers_editing_enabled()) { + SimpleEvent evt(EVT_GLTOOLBAR_LAYERSEDITING); + on_action_layersediting(evt); + } view3D->enable_toolbar_item("layersediting", enable_layer_editing);