From c12623f576fb9166d3914e87ac529d9ea54785b0 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Fri, 8 Aug 2025 15:58:39 +0800 Subject: [PATCH] FIX: the default value JIRA: [STUDIO-13902] Change-Id: Ib0dba13b42182e7c3963d5a190f5857c0e943d8b (cherry picked from commit 849c6e71b5b678799283f175b509c7f8cde85eda) --- src/slic3r/GUI/DeviceCore/DevConfig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/DeviceCore/DevConfig.h b/src/slic3r/GUI/DeviceCore/DevConfig.h index cd125c381c..29fd1208b2 100644 --- a/src/slic3r/GUI/DeviceCore/DevConfig.h +++ b/src/slic3r/GUI/DeviceCore/DevConfig.h @@ -3,6 +3,7 @@ #include "slic3r/Utils/json_diff.hpp" #include +#include namespace Slic3r @@ -56,7 +57,7 @@ private: bool m_support_chamber_edit = false; int m_chamber_temp_edit_min = 0; int m_chamber_temp_edit_max = 60; - int m_chamber_temp_switch_heat = LONG_MAX; /* the min temp to start heating, default to LONG_MAX */ + int m_chamber_temp_switch_heat = std::numeric_limits::max(); /* the min temp to start heating, default to max */ // print options bool m_support_first_layer_inspect = false;