diff --git a/src/Project.cpp b/src/Project.cpp index a3564f73a..f9bf9d073 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -4705,6 +4705,15 @@ void AudacityProject::TP_DisplaySelection() { double audioTime; + if (mRuler) { + if (!gAudioIO->IsBusy() && !mLockPlayRegion) + mRuler->SetPlayRegion(mViewInfo.selectedRegion.t0(), + mViewInfo.selectedRegion.t1()); + else + // Cause ruler redraw anyway, because we may be zooming or scrolling + mRuler->Refresh(); + } + if (gAudioIO->IsBusy()) audioTime = gAudioIO->GetStreamTime(); else { @@ -4719,14 +4728,6 @@ void AudacityProject::TP_DisplaySelection() (mViewInfo.selectedRegion.f0(), mViewInfo.selectedRegion.f1()); #endif - if (mRuler) { - if (!gAudioIO->IsBusy() && !mLockPlayRegion) - mRuler->SetPlayRegion(mViewInfo.selectedRegion.t0(), - mViewInfo.selectedRegion.t1()); - else - // Cause ruler redraw anyway, because we may be zooming or scrolling - mRuler->Refresh(); - } }