mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-27 06:07:59 +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:
parent
4af87a1879
commit
41abedf09c
@ -5255,6 +5255,10 @@ void TrackPanel::UpdateViewIfNoTracks()
|
|||||||
//PRL: and default the rest of the selection information
|
//PRL: and default the rest of the selection information
|
||||||
mViewInfo->selectedRegion = SelectedRegion();
|
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_RedrawScrollbars();
|
||||||
mListener->TP_DisplayStatusMessage(wxT("")); //STM: Clear message if all tracks are removed
|
mListener->TP_DisplayStatusMessage(wxT("")); //STM: Clear message if all tracks are removed
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user