From d78026c15192c0873b2954fe9beb782262a55d60 Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 6 Mar 2020 11:18:24 +0000 Subject: [PATCH] Bug 2346 - Selected wave color wrong after applying Nyquist effect or Generator --- src/Track.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Track.cpp b/src/Track.cpp index 43f512852..1992b7b10 100644 --- a/src/Track.cpp +++ b/src/Track.cpp @@ -775,6 +775,12 @@ auto TrackList::Replace(Track * t, const ListOfTracks::value_type &with) -> pTrack->SetId( t->GetId() ); RecalcPositions(node); + WaveTrack * wt1 = dynamic_cast(t); + WaveTrack * wt2 = dynamic_cast(pTrack); + if (wt1 && wt2) { + wt2->SetWaveColorIndex(wt1->GetWaveColorIndex()); + } + DeletionEvent(node); AdditionEvent(node); }