mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 04:35:59 +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);
|
choice_ctrl* field = dynamic_cast<choice_ctrl*>(window);
|
||||||
switch (m_opt.type) {
|
switch (m_opt.type) {
|
||||||
case coEnum:{
|
case coEnum:{
|
||||||
int id_value = m_opt.get_default_value<ConfigOptionEnum<SeamPosition>>()->value; //!!
|
field->SetSelection(m_opt.default_value->getInt());
|
||||||
field->SetSelection(id_value);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case coFloat:
|
case coFloat:
|
||||||
|
@ -64,7 +64,7 @@ enum class ActionButtonType : int;
|
|||||||
|
|
||||||
class Sidebar : public wxPanel
|
class Sidebar : public wxPanel
|
||||||
{
|
{
|
||||||
ConfigOptionMode m_mode;
|
ConfigOptionMode m_mode{ConfigOptionMode::comSimple};
|
||||||
public:
|
public:
|
||||||
Sidebar(Plater *parent);
|
Sidebar(Plater *parent);
|
||||||
Sidebar(Sidebar &&) = delete;
|
Sidebar(Sidebar &&) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user