1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +02:00

Bug972, again: Recording into empty project aligns time 0 with left edge.

Also has this effect:  Generate sound, scroll left, then delete the (sole)
track.  Create new track from menu.  Formerly, the track did not align 0
to left edge.  Now it does.
This commit is contained in:
Paul Licameli 2015-05-26 20:20:04 -04:00
parent 4af87a1879
commit 41abedf09c

View File

@ -5255,6 +5255,10 @@ void TrackPanel::UpdateViewIfNoTracks()
//PRL: and default the rest of the selection information
mViewInfo->selectedRegion = SelectedRegion();
// PRL: Following causes the time ruler to align 0 with left edge.
// Bug 972
mViewInfo->h = 0;
mListener->TP_RedrawScrollbars();
mListener->TP_DisplayStatusMessage(wxT("")); //STM: Clear message if all tracks are removed
}