fix partial regression due to reversion

This commit is contained in:
Joseph Lenox 2018-11-18 17:20:20 -06:00 committed by Joseph Lenox
parent bbbcd36113
commit f84f658389

View File

@ -128,6 +128,7 @@ bool Preset::compatible(const std::string& printer_name) const {
auto compatible_list {this->_dirty_config->get<ConfigOptionStrings>("compatible_printers").values}; auto compatible_list {this->_dirty_config->get<ConfigOptionStrings>("compatible_printers").values};
if (compatible_list.size() == 0) return true; if (compatible_list.size() == 0) return true;
return std::any_of(compatible_list.cbegin(), compatible_list.cend(), [printer_name] (const std::string& x) -> bool { return x.compare(printer_name) == 0; }); return std::any_of(compatible_list.cbegin(), compatible_list.cend(), [printer_name] (const std::string& x) -> bool { return x.compare(printer_name) == 0; });
}
const std::string preset_name(preset_t group) { const std::string preset_name(preset_t group) {
switch(group) { switch(group) {