Fixed a use of uninitialized variables reported by MemorySanitizer

This commit is contained in:
YuSanka 2022-01-21 16:53:57 +01:00
parent 0cc3a67b8c
commit 959804c80c
2 changed files with 2 additions and 3 deletions

View File

@ -1048,8 +1048,7 @@ void Choice::set_selection()
choice_ctrl* field = dynamic_cast<choice_ctrl*>(window);
switch (m_opt.type) {
case coEnum:{
int id_value = m_opt.get_default_value<ConfigOptionEnum<SeamPosition>>()->value; //!!
field->SetSelection(id_value);
field->SetSelection(m_opt.default_value->getInt());
break;
}
case coFloat:

View File

@ -64,7 +64,7 @@ enum class ActionButtonType : int;
class Sidebar : public wxPanel
{
ConfigOptionMode m_mode;
ConfigOptionMode m_mode{ConfigOptionMode::comSimple};
public:
Sidebar(Plater *parent);
Sidebar(Sidebar &&) = delete;