Mercurial > hg > svgui
changeset 364:f1e6204c1f17
* New views created in page-follow mode should be centred on global centre
frame, not playback frame
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2008 12:36:18 +0000 |
parents | 6167a28d25fc |
children | 26ce2fb7bcbf |
files | view/View.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {