mirror of https://github.com/odrling/Aegisub
use wxString::Format in current time text field
This commit is contained in:
parent
1af281fcf0
commit
ec030c54e2
|
@ -46,6 +46,7 @@
|
||||||
#include <wx/combobox.h>
|
#include <wx/combobox.h>
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
|
#include <wx/string.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/toolbar.h>
|
#include <wx/toolbar.h>
|
||||||
|
|
||||||
|
@ -115,7 +116,7 @@ void VideoBox::UpdateTimeBoxes() {
|
||||||
int time = context->videoController->TimeAtFrame(frame, agi::vfr::EXACT);
|
int time = context->videoController->TimeAtFrame(frame, agi::vfr::EXACT);
|
||||||
|
|
||||||
// Set the text box for frame number and time
|
// 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)) {
|
if (boost::binary_search(context->project->Keyframes(), frame)) {
|
||||||
// Set the background color to indicate this is a keyframe
|
// Set the background color to indicate this is a keyframe
|
||||||
VideoPosition->SetBackgroundColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Selection")->GetColor()));
|
VideoPosition->SetBackgroundColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Selection")->GetColor()));
|
||||||
|
|
Loading…
Reference in New Issue