Skip to content

Commit

Permalink
fix remove_invalid_keys on an erased config instead of the preset config
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill authored Jan 25, 2024
1 parent 97c3679 commit 67db420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/Preset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ void PresetCollection::load_presets(
preset.config.apply(std::move(config));
Preset::normalize(preset.config);
// Report configuration fields, which are misplaced into a wrong group.
std::string incorrect_keys = Preset::remove_invalid_keys(config, default_preset.config);
std::string incorrect_keys = Preset::remove_invalid_keys(preset.config, default_preset.config);
if (! incorrect_keys.empty())
BOOST_LOG_TRIVIAL(error) << "Error in a preset file: The preset \"" <<
preset.file << "\" contains the following incorrect keys: " << incorrect_keys << ", which were removed";
Expand Down

0 comments on commit 67db420

Please sign in to comment.