comparison view/View.cpp @ 314:7b96a3261e1c

* "Align mode"
author Chris Cannam
date Tue, 16 Oct 2007 18:42:51 +0000
parents 1517c76cd678
children c30a7cd29f4a
comparison
equal deleted inserted replaced
313:1517c76cd678 314:7b96a3261e1c
1053 1053
1054 int 1054 int
1055 View::getAlignedPlaybackFrame() const 1055 View::getAlignedPlaybackFrame() const
1056 { 1056 {
1057 if (!m_manager) return 0; 1057 if (!m_manager) return 0;
1058 if (!m_manager->getPlaybackModel()) return m_manager->getPlaybackFrame(); 1058 if (!m_manager->getAlignMode() ||
1059 !m_manager->getPlaybackModel()) {
1060 return m_manager->getPlaybackFrame();
1061 }
1059 1062
1060 RangeSummarisableTimeValueModel *waveformModel = 0; 1063 RangeSummarisableTimeValueModel *waveformModel = 0;
1061 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) { 1064 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) {
1062 1065
1063 if (!*i) continue; 1066 if (!*i) continue;