Fix [scale] from being assigned to [year] placeholder

[year] in output filename format results in blank file name (Issue #2349)
This commit is contained in:
Jebtrix 2019-11-04 15:48:55 -05:00 committed by Vojtěch Bubník
parent 1779fc0e1d
commit 5342ad8990

View file

@ -37,7 +37,7 @@ void PrintBase::update_object_placeholders(DynamicConfig &config, const std::str
}
}
config.set_key_value("year", new ConfigOptionStrings(v_scale));
config.set_key_value("scale", new ConfigOptionStrings(v_scale));
if (! input_file.empty()) {
// get basename with and without suffix
const std::string input_filename = boost::filesystem::path(input_file).filename().string();