1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Bug 1774 - Recording does not honor waveform color

New clip now takes colour from WaveTrack, and new WaveTrack takes colour of the WaveTrack its clips will be appended onto.
This commit is contained in:
James Crook
2017-11-07 14:26:32 +00:00
parent c28be778e2
commit 0bae8c3a90
3 changed files with 3 additions and 1 deletions

View File

@@ -1074,6 +1074,7 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
// Pad the recording track with silence, up to the
// maximum time.
auto newTrack = p->GetTrackFactory()->NewWaveTrack();
newTrack->SetWaveColorIndex( wt->GetWaveColorIndex() );
newTrack->InsertSilence(0.0, t0 - t1);
newTrack->Flush();
wt->Clear(t1, t0);