From 2a2530924fc4d648f3c878feb0686335cd905516 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Tue, 20 Jul 2021 08:30:49 +0200 Subject: [PATCH] FIX for build Asan_OsX_Mojave_Universal_ARM64/590 ../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:72:81: error: cannot pass non-trivial object of type 'std::string' (aka 'basic_string, allocator >') to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs] ../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:72:87: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] --- src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp index 8e756a6397..b46c18a110 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp @@ -69,7 +69,8 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi int flag = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse; m_imgui->begin(_L("Simplify mesh ") + volume->name, flag); - ImGui::Text("Reduce amout of triangle in mesh(%s has %d triangles", volume->name, triangle_count); + ImGui::Text(_L("Reduce amout of triangle in mesh(%s has %d triangles").c_str(), + volume->name.c_str(), static_cast(triangle_count)); // First initialization + fix triangle count if (c.wanted_count > triangle_count) c.update_percent(triangle_count); if (m_imgui->checkbox(_L("Until triangle count is less than "), c.use_count)) {