Fixed a regression bug of handling the obsolete config parameters,
causing crashes.
This commit is contained in:
parent
6aff27f3ab
commit
830da1f8e4
2 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,7 @@ bool ConfigBase::set_deserialize_raw(const t_config_option_key &opt_key_src, con
|
|||
for (const auto &opt : def->options) {
|
||||
for (const t_config_option_key &opt_key2 : opt.second.aliases) {
|
||||
if (opt_key2 == opt_key) {
|
||||
opt_key = opt_key2;
|
||||
opt_key = opt.first;
|
||||
optdef = &opt.second;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -245,6 +245,7 @@ PrintConfigDef::PrintConfigDef()
|
|||
def->enum_labels.push_back("Hilbert Curve");
|
||||
def->enum_labels.push_back("Archimedean Chords");
|
||||
def->enum_labels.push_back("Octagram Spiral");
|
||||
// solid_fill_pattern is an obsolete equivalent to external_fill_pattern.
|
||||
def->aliases.push_back("solid_fill_pattern");
|
||||
def->default_value = new ConfigOptionEnum<InfillPattern>(ipRectilinear);
|
||||
|
||||
|
|
Loading…
Reference in a new issue