mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +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:
parent
241f1014e5
commit
c58d130c18
@ -4705,6 +4705,15 @@ void AudacityProject::TP_DisplaySelection()
|
|||||||
{
|
{
|
||||||
double audioTime;
|
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())
|
if (gAudioIO->IsBusy())
|
||||||
audioTime = gAudioIO->GetStreamTime();
|
audioTime = gAudioIO->GetStreamTime();
|
||||||
else {
|
else {
|
||||||
@ -4719,14 +4728,6 @@ void AudacityProject::TP_DisplaySelection()
|
|||||||
(mViewInfo.selectedRegion.f0(), mViewInfo.selectedRegion.f1());
|
(mViewInfo.selectedRegion.f0(), mViewInfo.selectedRegion.f1());
|
||||||
#endif
|
#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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user