From 1d94e0c021da37c343db0d5850b5a16802d7bef5 Mon Sep 17 00:00:00 2001 From: "liz.li" Date: Mon, 27 Feb 2023 09:58:36 +0800 Subject: [PATCH] FIX: remove text translate of all plates stats button Change-Id: If19e522051cb81f69c37b1fb37d4db2b516ccdc9 --- src/slic3r/GUI/GLCanvas3D.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 04a7cf85b..b661ea566 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -7319,12 +7319,12 @@ void GLCanvas3D::_render_imgui_select_plate_toolbar() // draw text GImGui->FontSize = 15.0f; ImGui::PushStyleColor(ImGuiCol_Text, text_clr); - ImVec2 text_size = ImGui::CalcTextSize(_L("All Plates").c_str()); + ImVec2 text_size = ImGui::CalcTextSize(("All Plates")); ImVec2 text_start_pos = ImVec2(start_pos.x + (button_width - text_size.x) / 2, start_pos.y + 3.0f * button_height / 5.0f); - ImGui::RenderText(text_start_pos, _L("All Plates").c_str()); - text_size = ImGui::CalcTextSize(_L("Stats").c_str()); + ImGui::RenderText(text_start_pos, ("All Plates")); + text_size = ImGui::CalcTextSize(("Stats")); text_start_pos = ImVec2(start_pos.x + (button_width - text_size.x) / 2, text_start_pos.y + ImGui::GetTextLineHeight()); - ImGui::RenderText(text_start_pos, _L("Stats").c_str()); + ImGui::RenderText(text_start_pos, ("Stats")); ImGui::PopStyleColor(); ImGui::SetWindowFontScale(1.2f); }