Mercurial > hg > svgui
diff view/View.cpp @ 321:973a0272b712
* Add Align button to main window; use it
author | Chris Cannam |
---|---|
date | Thu, 25 Oct 2007 15:45:12 +0000 |
parents | 984c1975f1ff |
children | 90e10a236c44 4f4f38a11cd2 |
line wrap: on
line diff
--- a/view/View.cpp Thu Oct 25 14:32:23 2007 +0000 +++ b/view/View.cpp Thu Oct 25 15:45:12 2007 +0000 @@ -1127,6 +1127,7 @@ size_t View::alignFromReference(size_t f) const { + if (!m_manager->getAlignMode()) return f; Model *aligningModel = getAligningModel(); if (!aligningModel) return f; return aligningModel->alignFromReference(f); @@ -1135,6 +1136,7 @@ size_t View::alignToReference(size_t f) const { + if (!m_manager->getAlignMode()) return f; Model *aligningModel = getAligningModel(); if (!aligningModel) return f; return aligningModel->alignToReference(f); @@ -1143,10 +1145,10 @@ int View::getAlignedPlaybackFrame() const { + int pf = m_manager->getPlaybackFrame(); + if (!m_manager->getAlignMode()) return pf; + Model *aligningModel = getAligningModel(); - - int pf = m_manager->getPlaybackFrame(); - if (!aligningModel) return pf; Model *pm = m_manager->getPlaybackModel();