diff --git a/src/libslic3r/ProfilesSharingUtils.cpp b/src/libslic3r/ProfilesSharingUtils.cpp index 44ea057bd9..22b67a3a2f 100644 --- a/src/libslic3r/ProfilesSharingUtils.cpp +++ b/src/libslic3r/ProfilesSharingUtils.cpp @@ -432,7 +432,7 @@ std::string load_full_print_config(const std::string& print_preset_name, const std::vector& material_preset_names_in, const std::string& printer_preset_name, DynamicPrintConfig& config, - PrinterTechnology printer_technology) + PrinterTechnology printer_technology /*= ptUnknown*/) { // check entered profile names @@ -495,7 +495,7 @@ std::string load_full_print_config(const std::string& print_preset_name, if (printer_technology == ptFFF) { const int extruders_count = int(static_cast(printer_preset->config.option("nozzle_diameter"))->values.size()); - if (extruders_count > material_preset_names.size()) { + if (extruders_count > int(material_preset_names.size())) { BOOST_LOG_TRIVIAL(warning) << "Note: Less than needed filament profiles were entered. Missed filament profiles will be filled with first material."; material_preset_names.reserve(extruders_count); for (int i = extruders_count - material_preset_names.size(); i > 0; i--) diff --git a/src/libslic3r/ProfilesSharingUtils.hpp b/src/libslic3r/ProfilesSharingUtils.hpp index 89c1068333..51e72e5dfa 100644 --- a/src/libslic3r/ProfilesSharingUtils.hpp +++ b/src/libslic3r/ProfilesSharingUtils.hpp @@ -15,12 +15,14 @@ class DynamicPrintConfig; bool load_full_print_config(const std::string& print_preset, const std::string& filament_preset, const std::string& printer_preset, DynamicPrintConfig& out_config); // Load full print config into config -// Return error/warning string if any exists +// Return value is always error string if any exists +// Note, that all appearing warnings are added into BOOST_LOG +// When printer_technology is set, then it will be compared with printer technology of the printer_profile and return the error, when they aren't the same std::string load_full_print_config( const std::string& print_preset_name, const std::vector& material_preset_names, const std::string& printer_preset_name, DynamicPrintConfig& config, - PrinterTechnology printer_technology); + PrinterTechnology printer_technology = ptUnknown); } // namespace Slic3r