1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-20 14:47:49 +02:00

Bug1390: Don't crash when SnapTo is not Off

This commit is contained in:
Paul Licameli 2016-05-20 23:48:30 -04:00
parent 6acb0f99b3
commit 66c14c9940

View File

@ -4788,7 +4788,10 @@ void AudacityProject::TP_HandleResize()
void AudacityProject::GetPlayRegion(double* playRegionStart, void AudacityProject::GetPlayRegion(double* playRegionStart,
double *playRegionEnd) double *playRegionEnd)
{ {
mRuler->GetPlayRegion(playRegionStart, playRegionEnd); if (mRuler)
mRuler->GetPlayRegion(playRegionStart, playRegionEnd);
else
*playRegionEnd = *playRegionStart = 0;
} }
void AudacityProject::AutoSave() void AudacityProject::AutoSave()