mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: Client crash when opening certain model or select certain item in the comparator dropdown menu
Jira: STUDIO-13491 Change-Id: I40e9cb406fa1b26da9a6527ff5b0bc68d9b10a52 (cherry picked from commit 11f520e44b0ee74abef3433d2b8fefcdd326cb26)
This commit is contained in:
@@ -1212,6 +1212,9 @@ 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 (!option) {
|
||||
return _L("N/A");
|
||||
}
|
||||
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user