mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 14:18:41 +02:00
Bug 1612 - Zoom factor lost
Zoom to fit on recovery of a project.
This commit is contained in:
parent
65b4e34f71
commit
a13be4bea3
@ -2941,6 +2941,9 @@ AudacityProject *AudacityProject::OpenProject(
|
||||
auto cleanup = finally( [&] { if( pNewProject ) pNewProject->Close(true); } );
|
||||
pProject->OpenFile( fileNameArg, addtohistory );
|
||||
pNewProject = nullptr;
|
||||
if( pProject && pProject->mIsRecovered )
|
||||
pProject->Zoom( pProject->GetZoomOfToFit() );
|
||||
|
||||
return pProject;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user