diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-19 20:21:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-03 10:07:15 +0200 |
| commit | 43f2828711adfdd91554a45c163766f84788c73c (patch) | |
| tree | d3c35f0c27ef5a6ff40547475ca4d43712bfe39f | |
| parent | f0d3c449519e801470e9fae9de4cbe0bf79adaf3 (diff) | |
Remove an unnecessary get().
| -rw-r--r-- | src/wx/controls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 7d2830df1..4778fdd0f 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -227,7 +227,7 @@ Controls::slider_moved (bool page) _slider_being_moved = true; } - DCPTime t (_slider->GetValue() * _film->length().get() / 4096); + DCPTime t = _film->length() * (_slider->GetValue() / 4096); t = t.round (_film->video_frame_rate()); /* Ensure that we hit the end of the film at the end of the slider. In particular, we need to do an accurate seek in case there isn't a keyframe near the end. |
