summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-04 23:40:45 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-04 23:40:45 +0200
commitb8e62db42a10067b3e49bd7f8d036ced75e003bb (patch)
tree171de1ed715850c877dd0b5acdd005ec2ce4d294
parentf015ab05e025348dbc5fafd98da63fe354ee878c (diff)
Fix flickering of timecode values on Windows.
-rw-r--r--src/wx/controls.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index 5651dc8f2..caa0dc823 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -259,15 +259,15 @@ void
Controls::update_position_label ()
{
if (!_film) {
- _frame_number->SetLabel ("0");
- _timecode->SetLabel ("0:0:0.0");
+ checked_set (_frame_number, wxT("0"));
+ checked_set (_timecode, wxT("0:0:0.0"));
return;
}
double const fps = _film->video_frame_rate ();
/* Count frame number from 1 ... not sure if this is the best idea */
- _frame_number->SetLabel (wxString::Format (wxT("%ld"), lrint (_viewer->position().seconds() * fps) + 1));
- _timecode->SetLabel (time_to_timecode (_viewer->position(), fps));
+ checked_set (_frame_number, wxString::Format (wxT("%ld"), lrint (_viewer->position().seconds() * fps) + 1));
+ checked_set (_timecode, time_to_timecode (_viewer->position(), fps));
}
void