Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-09-04 10:24:44 +0300
committerYuSanka <yusanka@gmail.com>2019-09-04 10:24:44 +0300
commitdb2319cb5cfb9a7128346af3b7b70155797678b6 (patch)
treea4fe520f89b10c95ac300a9c142caf22063e1c40 /src/slic3r/GUI/GUI_ObjectLayers.cpp
parent6b95c579af9f6e20bd449c52c9e55646e0c51192 (diff)
Fixed sidebar layouts for selected "Object" and "Layers" items in ObjectList
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectLayers.cpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectLayers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectLayers.cpp b/src/slic3r/GUI/GUI_ObjectLayers.cpp
index a11033e27..822b137c3 100644
--- a/src/slic3r/GUI/GUI_ObjectLayers.cpp
+++ b/src/slic3r/GUI/GUI_ObjectLayers.cpp
@@ -135,7 +135,7 @@ wxSizer* ObjectLayers::create_layer(const t_layer_height_range& range)
auto temp = new wxStaticText(m_parent, wxID_ANY, _(L("mm")));
temp->SetBackgroundStyle(wxBG_STYLE_PAINT);
temp->SetFont(wxGetApp().normal_font());
- sizer->Add(temp, 0, wxLEFT|wxRIGHT, wxGetApp().em_unit());
+ sizer->Add(temp, 0, wxLEFT, wxGetApp().em_unit());
m_grid_sizer->Add(sizer);
@@ -154,16 +154,16 @@ void ObjectLayers::create_layers_list()
sizer->Add(del_btn, 0, wxRIGHT | wxLEFT, em_unit(m_parent));
- del_btn->Bind(wxEVT_BUTTON, [this, range](wxEvent &event) {
+ del_btn->Bind(wxEVT_BUTTON, [range](wxEvent &) {
wxGetApp().obj_list()->del_layer_range(range);
});
auto add_btn = new ScalableButton(m_parent, wxID_ANY, m_bmp_add);
add_btn->SetToolTip(_(L("Add layer range")));
- sizer->Add(add_btn, 0, wxRIGHT, em_unit(m_parent));
+ sizer->Add(add_btn);
- add_btn->Bind(wxEVT_BUTTON, [this, range](wxEvent &event) {
+ add_btn->Bind(wxEVT_BUTTON, [range](wxEvent &) {
wxGetApp().obj_list()->add_layer_range_after_current(range);
});
}