diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index f8d9f054a..1981f338e 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -13,6 +13,7 @@ #include "PrintExport.hpp" #include +#include #include #include #include @@ -1289,7 +1290,7 @@ std::string Print::validate() const return L("The supplied settings will cause an empty print."); // Find the smallest used nozzle diameter and the number of unique nozzle diameters. - double min_nozzle_diameter = DBL_MAX; + double min_nozzle_diameter = std::numeric_limits::max(); double max_nozzle_diameter = 0; for (unsigned int extruder_id : extruders) { double dmr = m_config.nozzle_diameter.get_at(extruder_id);