1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-31 19:44:54 +02:00

Bug2314: Zoom in should work during playback...

...bug began at 52ff705b0d

Fixing this in a way that does not make a dependency cycle between ProjectWindow
and TrackPanel
This commit is contained in:
Paul Licameli
2020-02-25 09:26:12 -05:00
parent 02dd7dc96b
commit 72ece7d9bf
2 changed files with 4 additions and 0 deletions

View File

@@ -401,6 +401,8 @@ unsigned operator()
double ZoomFactor = pow(2.0, steps);
AudacityProject *p = GetProject();
if( steps > 0 )
// PRL: Track panel refresh may be needed if you reenable this
// code, but we don't want this file dependent on TrackPanel.cpp
p->ZoomInByFactor( ZoomFactor );
else
p->ZoomOutByFactor( ZoomFactor );