# HG changeset patch # User Chris Cannam # Date 1202387778 0 # Node ID f1e6204c1f17bc11a7b6d2a8bf57413731aeed3b # Parent 6167a28d25fcc2eff5bba06d68f97b7445cf2fb6 * New views created in page-follow mode should be centred on global centre frame, not playback frame diff -r 6167a28d25fc -r f1e6204c1f17 view/View.cpp --- a/view/View.cpp Wed Feb 06 17:40:53 2008 +0000 +++ b/view/View.cpp Thu Feb 07 12:36:18 2008 +0000 @@ -667,7 +667,10 @@ connect(this, SIGNAL(zoomLevelChanged(unsigned long, bool)), m_manager, SLOT(viewZoomLevelChanged(unsigned long, bool))); - if (m_followPlay != PlaybackIgnore) { + if (m_followPlay == PlaybackScrollPage) { +// std::cerr << "View::setViewManager: setting centre frame to global centre frame: " << m_manager->getGlobalCentreFrame() << std::endl; + setCentreFrame(m_manager->getGlobalCentreFrame(), false); + } else if (m_followPlay == PlaybackScrollContinuous) { // std::cerr << "View::setViewManager: setting centre frame to playback frame: " << m_manager->getPlaybackFrame() << std::endl; setCentreFrame(m_manager->getPlaybackFrame(), false); } else if (m_followPan) {