From 03c8d13aa6e4d5ace940b8f310328269c5a91f09 Mon Sep 17 00:00:00 2001 From: Brendan Hagan Date: Sun, 10 Jul 2022 21:28:30 -0400 Subject: [PATCH] misc: use different format for console timestamp width --- src/gui/set/console_panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/set/console_panel.cpp b/src/gui/set/console_panel.cpp index 50e4d2ea..b7a3e3ca 100644 --- a/src/gui/set/console_panel.cpp +++ b/src/gui/set/console_panel.cpp @@ -291,8 +291,8 @@ private: // draw timestamp dc.DrawText(msg.timestamp.FormatISOTime(), left + TIMESTAMP_PADDING, top + TEXT_PADDING_TOP); - wxSize timestamp_size = dc.GetTextExtent("55:55:55"); - int timestamp_resolved_width = timestamp_size.GetWidth(); + int timestamp_resolved_width; + dc.GetTextExtent(_("55:55:55"), ×tamp_resolved_width, nullptr); left += timestamp_resolved_width; left += TIMESTAMP_PADDING * 2;