Bypass a crash when validating custom gcodes
This commit is contained in:
parent
09122fb0d0
commit
4b27210b6e
1 changed files with 2 additions and 0 deletions
|
@ -4515,6 +4515,8 @@ bool Tab::validate_custom_gcodes()
|
|||
if (!opt_group->is_activated())
|
||||
break;
|
||||
std::string key = opt_group->opt_map().begin()->first;
|
||||
if (key == "autoemit_temperature_commands")
|
||||
continue;
|
||||
valid &= validate_custom_gcode(opt_group->title, boost::any_cast<std::string>(opt_group->get_value(key)));
|
||||
if (!valid)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue