mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-24 21:55:14 +00:00
fix crash on opening support tab
This commit is contained in:
@@ -439,7 +439,7 @@ void Sidebar::priv::hide_rich_tip(wxButton* btn)
|
|||||||
|
|
||||||
static struct DynamicFilamentList : DynamicList
|
static struct DynamicFilamentList : DynamicList
|
||||||
{
|
{
|
||||||
std::vector<std::pair<wxString, wxBitmap *>> items;
|
std::vector<std::pair<wxString, wxBitmapBundle *>> items;
|
||||||
|
|
||||||
void apply_on(Choice *c) override
|
void apply_on(Choice *c) override
|
||||||
{
|
{
|
||||||
@@ -478,8 +478,8 @@ static struct DynamicFilamentList : DynamicList
|
|||||||
std::string type;
|
std::string type;
|
||||||
wxGetApp().preset_bundle->filaments.find_preset(presets[i])->get_filament_type(type);
|
wxGetApp().preset_bundle->filaments.find_preset(presets[i])->get_filament_type(type);
|
||||||
str << type;
|
str << type;
|
||||||
wxBitmap bmp = icons[i]->GetBitmapFor(wxGetApp().mainframe); //OcraftyoneTODO: using conversion rather than changing type of items vector
|
wxBitmapBundle* bmp = icons[i];
|
||||||
items.push_back({str, &bmp});
|
items.push_back({str, bmp});
|
||||||
}
|
}
|
||||||
DynamicList::update();
|
DynamicList::update();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user