diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-06-27 20:21:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-06-27 20:21:29 +0100 |
| commit | f269467edad36b432e59ce3e5e3c87db28fdce40 (patch) | |
| tree | 35b014c17691aea96e8ef68a3141990ed2879ff2 /src/wx/timing_panel.cc | |
| parent | 3f8e7d70bb81890246f9cea54cbc494b027dcc53 (diff) | |
Prevent setting of negative trims by changing play length.
Diffstat (limited to 'src/wx/timing_panel.cc')
| -rw-r--r-- | src/wx/timing_panel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 653e44669..4006c5d3e 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -395,7 +395,7 @@ TimingPanel::play_length_changed () BOOST_FOREACH (shared_ptr<Content> i, _parent->selected ()) { FrameRateChange const frc = _parent->film()->active_frame_rate_change (i->position ()); i->set_trim_end ( - ContentTime (i->full_length() - play_length, frc) - i->trim_start () + ContentTime (max(DCPTime(), i->full_length() - play_length), frc) - i->trim_start () ); } } |
