1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 00:29:41 +02:00

Bug 2346 - Selected wave color wrong after applying Nyquist effect or Generator

This commit is contained in:
James Crook 2020-03-06 11:18:24 +00:00
parent 09883646ec
commit d78026c151

View File

@ -775,6 +775,12 @@ auto TrackList::Replace(Track * t, const ListOfTracks::value_type &with) ->
pTrack->SetId( t->GetId() );
RecalcPositions(node);
WaveTrack * wt1 = dynamic_cast<WaveTrack *>(t);
WaveTrack * wt2 = dynamic_cast<WaveTrack *>(pTrack);
if (wt1 && wt2) {
wt2->SetWaveColorIndex(wt1->GetWaveColorIndex());
}
DeletionEvent(node);
AdditionEvent(node);
}