From eeff622a13115629c7302a8eb41c1e835aab19ad Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sat, 12 Oct 2024 14:31:19 +0300 Subject: [PATCH] Fixed date render on ImGui --- src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs b/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs index 0f1d9ec..b0fc73b 100644 --- a/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs +++ b/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs @@ -70,7 +70,7 @@ public void TextSameLine(ref readonly DateTimeOffset value) Span valueUtf8 = stackalloc byte[64]; Utf8Formatter.TryFormat(value, valueUtf8, out var written, new StandardFormat('O')); valueUtf8[written + 1] = 0; - Text(valueUtf8); + Text(valueUtf8.Slice(0, written + 1)); SameLine(0, 0); }