From 240bb299f023592a3ad5186b6b707c4c12f2c783 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Sat, 11 May 2024 21:52:33 +0200 Subject: [PATCH] fix: Fix CI failure with ImGui::SetTooltip() (#1672) --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index dab409e86..c608e30f7 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -1156,7 +1156,7 @@ namespace hex::plugin::builtin { patternDrawer->draw(patterns, &runtime, 150_scaled); }; } - ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.view"_lang); + ImGui::SetTooltip("%s", "hex.builtin.view.pattern_editor.sections.view"_lang.get().c_str()); ImGui::SameLine(); if (ImGuiExt::DimmedIconButton(ICON_VS_SAVE_AS, ImGui::GetStyleColorVec4(ImGuiCol_Text))) { fs::openFileBrowser(fs::DialogMode::Save, {}, [id, &runtime](const auto &path) { @@ -1169,7 +1169,7 @@ namespace hex::plugin::builtin { file.writeVector(runtime.getSection(id)); }); } - ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.export"_lang); + ImGui::SetTooltip("%s", (const char*)"hex.builtin.view.pattern_editor.sections.export"_lang.get().c_str()); ImGui::PopID(); }