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:
parent
09883646ec
commit
d78026c151
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user