From ec030c54e27c71ccf7bdb5a406e94d04e5a9f472 Mon Sep 17 00:00:00 2001 From: odrling Date: Tue, 24 Nov 2020 01:28:04 +0100 Subject: [PATCH] use wxString::Format in current time text field --- src/video_box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_box.cpp b/src/video_box.cpp index 49fff80aa..e76937a00 100644 --- a/src/video_box.cpp +++ b/src/video_box.cpp @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -115,7 +116,7 @@ void VideoBox::UpdateTimeBoxes() { int time = context->videoController->TimeAtFrame(frame, agi::vfr::EXACT); // Set the text box for frame number and time - VideoPosition->SetValue(fmt_wx("%s - %d", agi::Time(time).GetAssFormatted(true), frame)); + VideoPosition->SetValue(wxString::Format("%s - %d", agi::Time(time).GetAssFormatted(true), frame)); if (boost::binary_search(context->project->Keyframes(), frame)) { // Set the background color to indicate this is a keyframe VideoPosition->SetBackgroundColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Selection")->GetColor()));