mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
Bug 2346 - Selected wave color wrong after applying Nyquist effect or Generator
This commit is contained in:
@@ -775,6 +775,12 @@ auto TrackList::Replace(Track * t, const ListOfTracks::value_type &with) ->
|
|||||||
pTrack->SetId( t->GetId() );
|
pTrack->SetId( t->GetId() );
|
||||||
RecalcPositions(node);
|
RecalcPositions(node);
|
||||||
|
|
||||||
|
WaveTrack * wt1 = dynamic_cast<WaveTrack *>(t);
|
||||||
|
WaveTrack * wt2 = dynamic_cast<WaveTrack *>(pTrack);
|
||||||
|
if (wt1 && wt2) {
|
||||||
|
wt2->SetWaveColorIndex(wt1->GetWaveColorIndex());
|
||||||
|
}
|
||||||
|
|
||||||
DeletionEvent(node);
|
DeletionEvent(node);
|
||||||
AdditionEvent(node);
|
AdditionEvent(node);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user