mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 02:05:58 +08:00
Bypass a crash when validating custom gcodes
This commit is contained in:
parent
09122fb0d0
commit
4b27210b6e
@ -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…
x
Reference in New Issue
Block a user