mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 15:25:58 +08:00
Fixed a use of uninitialized variables reported by MemorySanitizer
This commit is contained in:
parent
0cc3a67b8c
commit
959804c80c
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user