X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Ftracksedit.C;h=0fa3b75a6e9ec8b523d3208ebbee7841f8c05774;hp=31e535ac90f576b5f43619ea1a40b22ee41546a2;hb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe diff --git a/cinelerra-5.0/cinelerra/tracksedit.C b/cinelerra-5.0/cinelerra/tracksedit.C index 31e535ac..0fa3b75a 100644 --- a/cinelerra-5.0/cinelerra/tracksedit.C +++ b/cinelerra-5.0/cinelerra/tracksedit.C @@ -130,6 +130,23 @@ void Tracks::shuffle_edits(double start, double end) } } +void Tracks::reverse_edits(double start, double end) +{ +// This doesn't affect automation or effects +// Labels follow the first track. + int first_track = 1; + for(Track *current_track = first; + current_track; + current_track = current_track->next) + { + if(current_track->record) + { + current_track->reverse_edits(start, end, first_track); + + first_track = 0; + } + } +} void Tracks::align_edits(double start, double end) { // This doesn't affect automation or effects