1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Bug fix for audio position

Fix for this bug: If the cursor/selection start is moved using the keyboard, then
audio position shows the previous cursor/selection start.

Simple fix in void AudacityProject::TP_DisplaySelection(). The play region is now updated
before its start is used for audio position.
This commit is contained in:
David Bailes 2016-05-14 17:22:28 +01:00
parent 241f1014e5
commit c58d130c18

View File

@ -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();
}
}