From 5ae6c8a6275763f747c39a1facf7d721e4c61ef8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 19 Feb 2022 18:02:44 +0100 Subject: [PATCH] fix: ImGui::TextFormattedCentered didn't properly pass format arguments forward --- lib/libimhex/include/hex/ui/imgui_imhex_extensions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/include/hex/ui/imgui_imhex_extensions.h b/lib/libimhex/include/hex/ui/imgui_imhex_extensions.h index 9a9e8ccb5..458ca6759 100644 --- a/lib/libimhex/include/hex/ui/imgui_imhex_extensions.h +++ b/lib/libimhex/include/hex/ui/imgui_imhex_extensions.h @@ -117,7 +117,7 @@ namespace ImGui { } void TextFormattedCentered(const std::string &fmt, auto &&...args) { - auto text = hex::format(fmt); + auto text = hex::format(fmt, std::forward(args)...); auto availableSpace = ImGui::GetContentRegionAvail(); auto textSize = ImGui::CalcTextSize(text.c_str(), nullptr, false, availableSpace.x * 0.75F);