From 41abedf09ca93f60c31a869441675887bf6963ae Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 26 May 2015 20:20:04 -0400 Subject: [PATCH] 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. --- src/TrackPanel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index e3d82c4bb..2d32837eb 100755 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -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 }