Mercurial > hg > svgui
diff view/ViewManager.cpp @ 1465:f31ccc5f3fb8
Don't attempt performance alignment when not in align mode
author | Chris Cannam |
---|---|
date | Fri, 24 May 2019 15:13:57 +0100 |
parents | c8a6fd3f9dff |
children | de41a11cabc2 |
line wrap: on
line diff
--- a/view/ViewManager.cpp Mon May 20 15:04:32 2019 +0100 +++ b/view/ViewManager.cpp Fri May 24 15:13:57 2019 +0100 @@ -211,7 +211,7 @@ #ifdef DEBUG_VIEW_MANAGER cerr << "ViewManager::alignPlaybackFrameToReference(" << frame << "): playback model is " << m_playbackModel << endl; #endif - if (!m_playbackModel) { + if (!m_playbackModel || !m_alignMode) { return frame; } else { sv_frame_t f = m_playbackModel->alignToReference(frame); @@ -228,7 +228,7 @@ #ifdef DEBUG_VIEW_MANAGER cerr << "ViewManager::alignReferenceToPlaybackFrame(" << frame << "): playback model is " << m_playbackModel << endl; #endif - if (!m_playbackModel) { + if (!m_playbackModel || !m_alignMode) { return frame; } else { sv_frame_t f = m_playbackModel->alignFromReference(frame);