X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftrack.C;h=b5382c3383406354a7b6a55d81c8c8928cdc6dac;hp=ee16058bd1db7054d97c5a3f9eb9979288402c77;hb=bdd6708750aa8b8315e9f4456504903f5f368807;hpb=b1649fe7b38cfb4bbec58b19fb8dda2daa0ce520 diff --git a/cinelerra-5.1/cinelerra/track.C b/cinelerra-5.1/cinelerra/track.C index ee16058b..b5382c33 100644 --- a/cinelerra-5.1/cinelerra/track.C +++ b/cinelerra-5.1/cinelerra/track.C @@ -80,10 +80,9 @@ void Track::create_objects() { } -int Track::copy_settings(Track *track, int do_title) + +int Track::copy_settings(Track *track) { - if( do_title ) - strcpy(this->title, track->title); this->expand_view = track->expand_view; this->draw = track->draw; this->gang = track->gang; @@ -93,6 +92,7 @@ int Track::copy_settings(Track *track, int do_title) this->play = track->play; this->track_w = track->track_w; this->track_h = track->track_h; + strcpy(this->title, track->title); return 0; } @@ -441,8 +441,7 @@ void Track::insert_track(Track *track, //printf("Track::insert_track %d %s %jd\n", __LINE__, title, min_length); // Decide whether to copy settings based on load_mode - if( replace_default ) - copy_settings(track, 0); + if(replace_default) copy_settings(track); edits->insert_edits(track->edits, to_units(position, 0),