X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvwindow.C;h=45dacc0b8496f4425b782f2b560ac67b7d189a94;hb=55ccff122957ddfaa871cf8f251cfe866732c870;hp=428a7b2310ea2eb3eca08145c11d54682b686412;hpb=49f85559268fc040fe7ba5611cc0520793cf728b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/vwindow.C b/cinelerra-5.1/cinelerra/vwindow.C index 428a7b23..45dacc0b 100644 --- a/cinelerra-5.1/cinelerra/vwindow.C +++ b/cinelerra-5.1/cinelerra/vwindow.C @@ -334,14 +334,6 @@ void VWindow::update_position(int change_type, 1); double position = edl->local_session->get_selectionstart(1); - Asset *asset = edl->assets->first; - if( asset && asset->tcstart ) { - double rate = asset->video_data ? asset->frame_rate : - asset->audio_data ? asset->sample_rate : 0; - if( rate > 0 ) - position += asset->tcstart / rate; - } - if(lock_window) gui->lock_window("VWindow::update_position"); gui->clock->update(position); if(lock_window) gui->unlock_window(); @@ -433,10 +425,8 @@ void VWindow::copy() const char *file_string = file.string(); long file_length = strlen(file_string); mwindow->gui->lock_window(); - mwindow->gui->get_clipboard()->to_clipboard(file_string, file_length, - SECONDARY_SELECTION); - mwindow->gui->get_clipboard()->to_clipboard(file_string, file_length, - BC_PRIMARY_SELECTION); + mwindow->gui->to_clipboard(file_string, file_length, BC_PRIMARY_SELECTION); + mwindow->gui->to_clipboard(file_string, file_length, SECONDARY_SELECTION); mwindow->gui->unlock_window(); } }