changeset 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 faa8532e4f02
children 1c37aa13bfd8
files view/ViewManager.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);