From 3401ba89db20936fb4210c7da72818fa5afb4ae2 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 15 Dec 2023 12:11:05 +0800 Subject: [PATCH] FIX: temperature symbols not shown correctly Need to use wxString::FromUTF8 to convert unicode symbols to wxString. jira: none Change-Id: Ia8b559d437c956a2cc28916d8963823356402d05 --- src/slic3r/GUI/CalibrationWizardPresetPage.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp index b871a4284..fb6b05580 100644 --- a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp @@ -390,9 +390,7 @@ void CaliPresetTipsPanel::set_params(int nozzle_temp, int bed_temp, float max_vo wxString text_nozzle_temp = wxString::Format("%d", nozzle_temp); m_nozzle_temp->GetTextCtrl()->SetValue(text_nozzle_temp); - std::string bed_temp_text = format("%d", bed_temp); - if (bed_temp == 0) - bed_temp_text = "-"; + std::string bed_temp_text = bed_temp==0 ? "-": std::to_string(bed_temp); m_bed_temp->SetLabel(wxString::FromUTF8(bed_temp_text + "°C")); wxString flow_val_text = wxString::Format("%0.2f", max_volumetric);