diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-18 01:27:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-18 01:27:28 +0100 |
| commit | 8c09738a28a4a9c0ae59a7486224cb3b4e850b57 (patch) | |
| tree | 3c621bcb65adfa8e4cb11fc9e5da1a2e90e11144 /src | |
| parent | 79a6fb77953ff3ca3b5d226fb3113368ca507791 (diff) | |
Use round() when moving the slider - try to make it the same as trim so that there are no surprises.v2.13.15
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index ccb2b790d..2c0712e92 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -421,6 +421,7 @@ FilmViewer::slider_moved (bool page) } DCPTime t (_slider->GetValue() * _film->length().get() / 4096); + t = t.round (_film->video_frame_rate()); /* Ensure that we hit the end of the film at the end of the slider */ if (t >= _film->length ()) { t = _film->length() - one_video_frame(); |
