mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: clien crash when double extruder filament preset switch to single
extruder filament preset Jira: STUDIO-12689 Change-Id: Ifab01dcbc0f42684655e3feae923bfeb82965d01 (cherry picked from commit 0b57ff3b537cf7c2fdc503ffd3e5b5567e84c5d4)
This commit is contained in:
@@ -1211,8 +1211,10 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
|
||||
}
|
||||
opt_idx = orig_opt_idx >= 0 ? orig_opt_idx : 0;
|
||||
opt_key = get_pure_opt_key(opt_key);
|
||||
auto option = config.option(opt_key);
|
||||
|
||||
if (config.option(opt_key)->is_nil())
|
||||
if (option->is_scalar() && config.option(opt_key)->is_nil() ||
|
||||
option->is_vector() && dynamic_cast<const ConfigOptionVectorBase *>(config.option(opt_key))->is_nil(opt_idx))
|
||||
return _L("N/A");
|
||||
|
||||
wxString out;
|
||||
|
||||
Reference in New Issue
Block a user