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=933985e5297dd984b99c38de10da3515e360808a;hb=2a56d102d9db53017b306f2a61a2382f29a75783;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/labels.C b/cinelerra-5.1/cinelerra/labels.C index 933985e5..211b8767 100644 --- a/cinelerra-5.1/cinelerra/labels.C +++ b/cinelerra-5.1/cinelerra/labels.C @@ -478,37 +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_ALL_EDITS) - { - if(currentend == 0) // left handle - { - if(newposition < oldposition) - { - insert(oldposition, oldposition - newposition); // shift all labels right - } - else - { - clear(oldposition, newposition); // clear selection - } - } + if( !currentend ) { // left handle + if( newposition < oldposition ) + insert(oldposition, oldposition - newposition); // shift all labels right else - { // right handle - if(newposition < oldposition) - { - clear(newposition, oldposition); - } - else - { - insert(oldposition, newposition - oldposition); - } - } + clear(oldposition, newposition); // clear selection + } + else { // right handle + if( newposition < oldposition ) + clear(newposition, oldposition); + else + insert(oldposition, newposition - oldposition); } return 0; }