Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv20662
Modified Files:
Menus.cpp
Log Message:
Fix zooming in while playing audio
Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.314
retrieving revision 1.315
diff -u -d -r1.314 -r1.315
--- Menus.cpp 23 May 2007 22:21:43 -0000 1.314
+++ Menus.cpp 26 May 2007 06:11:11 -0000 1.315
@@ -3187,6 +3187,14 @@
void AudacityProject::OnZoomIn()
{
+ // LLL: Handling positioning differently when audio is active
+ if (gAudioIO->IsStreamActive(GetAudioIOToken()) != 0) {
+ Zoom(mViewInfo.zoom * 2.0);
+ mTrackPanel->ScrollIntoView(gAudioIO->GetStreamTime());
+ mTrackPanel->Refresh(false);
+ return;
+ }
+
// DMM: Here's my attempt to get logical zooming behavior
// when there's a selection that's currently at least
// partially on-screen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs