diff document/SVFileReader.cpp @ 109:e6c4b27cba2c

* Rejig handling of scrolling views. Ensures, among other things, that playing when there is a scroll mode view present (e.g. a spectrum) does not drag any page mode views into scroll mode with it.
author Chris Cannam
date Thu, 01 Mar 2007 11:55:46 +0000
parents 51be0daa1386
children b4110b17bca8
line wrap: on
line diff
--- a/document/SVFileReader.cpp	Tue Feb 27 12:51:38 2007 +0000
+++ b/document/SVFileReader.cpp	Thu Mar 01 11:55:46 2007 +0000
@@ -679,9 +679,9 @@
     // Specify the follow modes before we set the actual values
     view->setFollowGlobalPan(followPan);
     view->setFollowGlobalZoom(followZoom);
-    view->setPlaybackFollow(tracking == "scroll" ? View::PlaybackScrollContinuous :
-			    tracking == "page" ? View::PlaybackScrollPage
-			    : View::PlaybackIgnore);
+    view->setPlaybackFollow(tracking == "scroll" ? PlaybackScrollContinuous :
+			    tracking == "page" ? PlaybackScrollPage
+			    : PlaybackIgnore);
 
     // Then set these values
     view->setCentreFrame(centre);