mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX: client crash when select other setting in the comparator's right combobox
Jira: STUDIO-13491 Change-Id: I2ca85b2e176de0748317ccd97576d1f052bbbc39 (cherry picked from commit ae8df0f31c1f26278635cf0b270572d8a00319a7)
This commit is contained in:
@@ -1191,8 +1191,9 @@ static size_t get_id_from_opt_key(std::string opt_key)
|
||||
static wxString get_full_label(std::string opt_key, const DynamicPrintConfig& config)
|
||||
{
|
||||
opt_key = get_pure_opt_key(opt_key);
|
||||
auto option = config.option(opt_key);
|
||||
|
||||
if (config.option(opt_key)->is_nil())
|
||||
if (!option || option->is_nil())
|
||||
return _L("N/A");
|
||||
|
||||
const ConfigOptionDef* opt = config.def()->get(opt_key);
|
||||
|
||||
Reference in New Issue
Block a user