From 046df82ccc1604789f2b1ed1b068e22a5711f4fc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 15 Aug 2020 16:19:36 +0200 Subject: [PATCH] Always set proper numeric locale. --- profiler/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index a3a7aa5d..4cfa4786 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -465,6 +465,8 @@ static void DrawContents() ImGui::NewFrame(); tracy::MouseFrame(); + setlocale( LC_NUMERIC, "C" ); + if( !view ) { if( s_customTitle ) @@ -546,7 +548,6 @@ static void DrawContents() } } - setlocale( LC_NUMERIC, "C" ); auto& style = ImGui::GetStyle(); style.Colors[ImGuiCol_WindowBg] = ImVec4( 0.129f, 0.137f, 0.11f, 1.f ); ImGui::Begin( "Get started", nullptr, ImGuiWindowFlags_AlwaysAutoResize );