From 1172dfcb402b6fdd5df31262009d123fbb2ca918 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 18 Aug 2020 07:55:53 +0200 Subject: [PATCH] #4639 - ImGuiWrapper: fixed calls to ImGui::Text() and ImGui::TextColored() --- src/slic3r/GUI/ImGuiWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp index 266472ecaf..104680f502 100644 --- a/src/slic3r/GUI/ImGuiWrapper.cpp +++ b/src/slic3r/GUI/ImGuiWrapper.cpp @@ -362,7 +362,7 @@ bool ImGuiWrapper::checkbox(const wxString &label, bool &value) void ImGuiWrapper::text(const char *label) { - ImGui::Text(label, NULL); + ImGui::Text("%s", label); } void ImGuiWrapper::text(const std::string &label) @@ -378,7 +378,7 @@ void ImGuiWrapper::text(const wxString &label) void ImGuiWrapper::text_colored(const ImVec4& color, const char* label) { - ImGui::TextColored(color, label); + ImGui::TextColored(color, "%s", label); } void ImGuiWrapper::text_colored(const ImVec4& color, const std::string& label)