diff options
author | YuSanka <yusanka@gmail.com> | 2019-02-07 18:33:14 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-02-07 18:33:14 +0300 |
commit | 9021f84eac59774cd8c287012a82117db7cf30ea (patch) | |
tree | e364f4d3a1d3cbe842000d5c2c27d3ecaebb1104 /src/slic3r/GUI | |
parent | 34b14eb8fa4bfcec9612b7e26d95e160caefa027 (diff) |
Fix of #1771
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/Field.cpp | 4 | ||||
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectManipulation.cpp | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index e575a919a..2797bc0b8 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -872,8 +872,8 @@ void StaticText::BUILD() if (m_opt.height >= 0) size.SetHeight(m_opt.height); if (m_opt.width >= 0) size.SetWidth(m_opt.width); - wxString legend(static_cast<const ConfigOptionString*>(m_opt.default_value)->value); - auto temp = new wxStaticText(m_parent, wxID_ANY, legend, wxDefaultPosition, size); + const wxString legend(static_cast<const ConfigOptionString*>(m_opt.default_value)->value); + auto temp = new wxStaticText(m_parent, wxID_ANY, legend, wxDefaultPosition, size, wxST_ELLIPSIZE_MIDDLE); temp->SetFont(wxGetApp().bold_font()); // // recast as a wxWindow to fit the calling convention diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp index 209a32374..a00e4676b 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp @@ -42,10 +42,9 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) : // Objects(sub-objects) name def.label = L("Name"); - // def.type = coString; def.gui_type = "legend"; def.tooltip = L("Object name"); - def.full_width = true; + def.width = 200; def.default_value = new ConfigOptionString{ " " }; m_og->append_single_option_line(Option(def, "object_name")); |