bug fix for In/Out pointer Attach Effect on empty track/location - Andrew+Anon
authorGood Guy <[email protected]>
Sun, 8 Aug 2021 20:51:09 +0000 (14:51 -0600)
committerGood Guy <[email protected]>
Sun, 8 Aug 2021 20:51:09 +0000 (14:51 -0600)
cinelerra-5.1/cinelerra/mwindowedit.C
cinelerra-5.1/cinelerra/plugindialog.C

index 6744cee88f3e2fcc050853b7c5ee8d614d761c85..458ced964e8f3418505b7d27ccf19adb80662dd0 100644 (file)
@@ -841,8 +841,8 @@ void MWindow::insert_effect(char *title, SharedLocation *shared_location,
        SharedLocation shared_location_local;
        shared_location_local.copy_from(shared_location);
        int first_track = 1;
-       double start_pos = edl->local_session->get_selectionstart(1);
-       double end_pos = edl->local_session->get_selectionend(1);
+       double start_pos = edl->local_session->get_selectionstart();
+       double end_pos = edl->local_session->get_selectionend();
        for( ; current; current=NEXT ) {
                if( current->data_type != data_type ) continue;
                if( !current->is_armed() ) continue;
index 48f470e6efaa5888929399794fdfd4ec90ec80f3..fa24bb5b27989db1dee6eda77bd7f7db215f9e66 100644 (file)
@@ -463,8 +463,8 @@ void PluginDialogThread::apply()
                                        &shared_location, plugin_type);
                }
                else if( edl->tracks->track_exists(track) ) {
-                       double start = edl->local_session->get_selectionstart(1);
-                       double end = edl->local_session->get_selectionend(1);
+                       double start = edl->local_session->get_selectionstart();
+                       double end = edl->local_session->get_selectionend();
                        if( start >= end ) {
                                start = 0;
                                end = track->get_length();