X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flabels.C;h=211b8767ff75db8f39965ea6a8247e2bec1cb543;hp=1435a985c8d88abc115a12d245387c1ec55f29cc;hb=cb1a1530246ad67fb9be9aa2dbba5b88eb63e933;hpb=834732af87bfd7f1d4035109f31e48db12b415fa diff --git a/cinelerra-5.1/cinelerra/labels.C b/cinelerra-5.1/cinelerra/labels.C index 1435a985..211b8767 100644 --- a/cinelerra-5.1/cinelerra/labels.C +++ b/cinelerra-5.1/cinelerra/labels.C @@ -478,22 +478,19 @@ int Labels::paste_silence(double start, double end) return 0; } -int Labels::modify_handles(double oldposition, double newposition, - int currentend, int handle_mode, int edit_labels) +int Labels::modify_handles(double oldposition, double newposition, int currentend) { - if( edit_labels && handle_mode == MOVE_EDGE ) { - if( !currentend ) { // left handle - if( newposition < oldposition ) - insert(oldposition, oldposition - newposition); // shift all labels right - else - clear(oldposition, newposition); // clear selection - } - else { // right handle - if( newposition < oldposition ) - clear(newposition, oldposition); - else - insert(oldposition, newposition - oldposition); - } + if( !currentend ) { // left handle + if( newposition < oldposition ) + insert(oldposition, oldposition - newposition); // shift all labels right + else + clear(oldposition, newposition); // clear selection + } + else { // right handle + if( newposition < oldposition ) + clear(newposition, oldposition); + else + insert(oldposition, newposition - oldposition); } return 0; }