X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ftiming_panel.cc;h=9bf4cacf70a5ceddd28fbb49907f47273c2891ed;hp=97f3beca6d617c987ec01bbfb340fef1e8ce40ec;hb=e255351ea6ed4ab18ecca3d77262a494e9d65b87;hpb=c04fec82d25127fafa73c3daff87bece9aa8c8e8 diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 97f3beca6..9bf4cacf7 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -105,7 +105,7 @@ TimingPanel::TimingPanel (ContentPanel* p, weak_ptr viewer) _trim_start_to_playhead = new Button (this, _("Trim up to current position")); _trim_end_label = create_label (this, _("Trim from end"), true); _trim_end = new Timecode (this); - _trim_end_to_playhead = new Button (this, _("Trim after current position")); + _trim_end_to_playhead = new Button (this, _("Trim from current position to end")); _play_length_label = create_label (this, _("Play length"), true); _play_length = new Timecode (this); @@ -563,11 +563,11 @@ TimingPanel::trim_start_to_playhead_clicked () } } + fv->set_coalesce_player_changes (false); + if (new_ph) { fv->seek (new_ph.get(), true); } - - fv->set_coalesce_player_changes (false); } void @@ -583,7 +583,7 @@ TimingPanel::trim_end_to_playhead_clicked () BOOST_FOREACH (shared_ptr i, _parent->selected ()) { if (i->position() < ph && ph < i->end(film)) { FrameRateChange const frc = film->active_frame_rate_change (i->position ()); - i->set_trim_end (ContentTime(i->position() + i->full_length(film) - ph - DCPTime::from_frames(1, frc.dcp), frc) - i->trim_start()); + i->set_trim_end (ContentTime(i->position() + i->full_length(film) - ph, frc) - i->trim_start()); } } }