mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Fix ruler idle handler again
This commit is contained in:
parent
a31636aa1a
commit
a07b165307
@ -1131,12 +1131,15 @@ void AdornedRulerPanel::DoIdle()
|
|||||||
const auto &selectedRegion = viewInfo.selectedRegion;
|
const auto &selectedRegion = viewInfo.selectedRegion;
|
||||||
auto &playRegion = ViewInfo::Get( project ).playRegion;
|
auto &playRegion = ViewInfo::Get( project ).playRegion;
|
||||||
|
|
||||||
|
bool dirtySelectedRegion = mDirtySelectedRegion
|
||||||
|
|| ( mLastDrawnSelectedRegion != selectedRegion );
|
||||||
|
|
||||||
auto gAudioIO = AudioIOBase::Get();
|
auto gAudioIO = AudioIOBase::Get();
|
||||||
if (!gAudioIO->IsBusy() && !playRegion.Locked() && mDirtySelectedRegion)
|
if (!gAudioIO->IsBusy() && !playRegion.Locked() && dirtySelectedRegion)
|
||||||
SetPlayRegion( selectedRegion.t0(), selectedRegion.t1() );
|
SetPlayRegion( selectedRegion.t0(), selectedRegion.t1() );
|
||||||
else {
|
else {
|
||||||
changed = changed
|
changed = changed
|
||||||
|| mDirtySelectedRegion
|
|| dirtySelectedRegion
|
||||||
|| mLastDrawnH != viewInfo.h
|
|| mLastDrawnH != viewInfo.h
|
||||||
|| mLastDrawnZoom != viewInfo.GetZoom()
|
|| mLastDrawnZoom != viewInfo.GetZoom()
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user