From bbea6f924a7f3eea381bd8cc40d213ac54e80743 Mon Sep 17 00:00:00 2001 From: tao wang Date: Fri, 5 May 2023 10:29:33 +0800 Subject: [PATCH] FIX:fixed the Chinese profile name will display garbled characters Change-Id: I61f84b4e89e0ba9c7ceec0d8efb5d17874b498e2 --- src/slic3r/GUI/StatusPanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 9cb52e7ce..f42694a50 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -2344,8 +2344,8 @@ void StatusPanel::update_subtask(MachineObject *obj) if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) { - if(!m_staticText_profile_value->IsShown()){ m_staticText_profile_value->Show();} - m_staticText_profile_value->SetLabelText(obj->get_modeltask()->profile_name); + if (!m_staticText_profile_value->IsShown()) { m_staticText_profile_value->Show(); } + m_staticText_profile_value->SetLabelText(wxString::FromUTF8(obj->get_modeltask()->profile_name)); } else { m_staticText_profile_value->SetLabelText(wxEmptyString); @@ -2392,7 +2392,7 @@ void StatusPanel::update_subtask(MachineObject *obj) if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) { if(!m_staticText_profile_value->IsShown()){ m_staticText_profile_value->Show();} - m_staticText_profile_value->SetLabelText(obj->get_modeltask()->profile_name); + m_staticText_profile_value->SetLabelText(wxString::FromUTF8(obj->get_modeltask()->profile_name)); } else { m_staticText_profile_value->SetLabelText(wxEmptyString);