1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-16 16:47:41 +02:00

Revert fix for Bug 2346, which made a dependency cycle

This commit is contained in:
Paul Licameli 2020-03-06 17:24:03 -05:00
parent c60ec1a6e1
commit d869f78ab9

View File

@ -24,7 +24,6 @@ and TimeTrack.
#include "Audacity.h" // for USE_* macros
#include "Track.h"
#include "WaveTrack.h" // for preserving colour.
#include "Experimental.h"
@ -776,13 +775,6 @@ auto TrackList::Replace(Track * t, const ListOfTracks::value_type &with) ->
pTrack->SetId( t->GetId() );
RecalcPositions(node);
// Fix for Bug 2346. Preserve colour when replacing tracks.
WaveTrack * wt1 = dynamic_cast<WaveTrack *>(t);
WaveTrack * wt2 = dynamic_cast<WaveTrack *>(pTrack);
if (wt1 && wt2) {
wt2->SetWaveColorIndex(wt1->GetWaveColorIndex());
}
DeletionEvent(node);
AdditionEvent(node);
}