From afd5e241e622d2d7137dd0603eeb2e34893fc7f5 Mon Sep 17 00:00:00 2001 From: "tao.jin" Date: Wed, 12 Oct 2022 14:57:15 +0800 Subject: [PATCH] FIX: fix TempInput Widget display error on mac Change-Id: I6a5d14ece9b22453e2c22b1a279db6ff15d1f7c6 --- src/slic3r/GUI/StatusPanel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index c51fcc2ca..74342bc47 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -771,11 +771,11 @@ void StatusBasePanel::reset_temp_misc_control() { // reset temp string m_tempCtrl_nozzle->SetLabel(TEMP_BLANK_STR); - m_tempCtrl_nozzle->GetTextCtrl()->SetLabel(TEMP_BLANK_STR); + m_tempCtrl_nozzle->GetTextCtrl()->SetValue(TEMP_BLANK_STR); m_tempCtrl_bed->SetLabel(TEMP_BLANK_STR); - m_tempCtrl_bed->GetTextCtrl()->SetLabel(TEMP_BLANK_STR); + m_tempCtrl_bed->GetTextCtrl()->SetValue(TEMP_BLANK_STR); m_tempCtrl_frame->SetLabel(TEMP_BLANK_STR); - m_tempCtrl_frame->GetTextCtrl()->SetLabel(TEMP_BLANK_STR); + m_tempCtrl_frame->GetTextCtrl()->SetValue(TEMP_BLANK_STR); m_button_unload->Show(); m_tempCtrl_nozzle->Enable(true); @@ -1359,7 +1359,7 @@ void StatusPanel::update(MachineObject *obj) m_tempCtrl_frame->Enable(); } else { m_tempCtrl_frame->SetLabel(TEMP_BLANK_STR); - m_tempCtrl_frame->GetTextCtrl()->SetLabel(TEMP_BLANK_STR); + m_tempCtrl_frame->GetTextCtrl()->SetValue(TEMP_BLANK_STR); m_tempCtrl_frame->Disable(); }