From f62d927a25cb3b02f2197fde99c77df3005d41a7 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Sun, 8 Aug 2021 14:51:09 -0600 Subject: [PATCH] bug fix for In/Out pointer Attach Effect on empty track/location - Andrew+Anon --- cinelerra-5.1/cinelerra/mwindowedit.C | 4 ++-- cinelerra-5.1/cinelerra/plugindialog.C | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cinelerra-5.1/cinelerra/mwindowedit.C b/cinelerra-5.1/cinelerra/mwindowedit.C index 6744cee8..458ced96 100644 --- a/cinelerra-5.1/cinelerra/mwindowedit.C +++ b/cinelerra-5.1/cinelerra/mwindowedit.C @@ -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; diff --git a/cinelerra-5.1/cinelerra/plugindialog.C b/cinelerra-5.1/cinelerra/plugindialog.C index 48f470e6..fa24bb5b 100644 --- a/cinelerra-5.1/cinelerra/plugindialog.C +++ b/cinelerra-5.1/cinelerra/plugindialog.C @@ -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(); -- 2.26.2