diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/markers_dialog.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/markers_dialog.cc b/src/wx/markers_dialog.cc index 11a76548e..6658fdb45 100644 --- a/src/wx/markers_dialog.cc +++ b/src/wx/markers_dialog.cc @@ -91,10 +91,11 @@ private: { auto f = film.lock (); DCPOMATIC_ASSERT (f); - auto tc = timecode->get(f->video_frame_rate()); + auto vfr = f->video_frame_rate(); + auto tc = timecode->get(vfr); if (tc >= f->length()) { - tc = f->length(); - timecode->set (tc, f->video_frame_rate()); + tc = f->length() - DCPTime::from_frames(1, vfr); + timecode->set (tc, vfr); } if (checkbox->GetValue()) { f->set_marker (type, tc); |
