diff view/ViewManager.cpp @ 968:4d54882bbf73

Avoid going pop when setting play head to before time 0
author Chris Cannam
date Thu, 21 May 2015 15:31:12 +0100
parents b48db6f1a7d2
children f2c63ec85901
line wrap: on
line diff
--- a/view/ViewManager.cpp	Thu May 21 14:41:28 2015 +0100
+++ b/view/ViewManager.cpp	Thu May 21 15:31:12 2015 +0100
@@ -166,6 +166,7 @@
 void
 ViewManager::setPlaybackFrame(sv_frame_t f)
 {
+    if (f < 0) f = 0;
     if (m_playbackFrame != f) {
 	m_playbackFrame = f;
 	emit playbackFrameChanged(f);