summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-24 20:48:08 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-24 20:48:08 +0000
commitbf8dbbaca775639b37a14cb0745e3aad4931f93e (patch)
tree0f81ab157da2508837735e28cf616b1a73721b20 /gtk2_ardour/editor_ops.cc
parenteadc2192c576bdfc3902bb4f08f3baf4909b97b8 (diff)
Fix warning about getting tempo map for frame -1; stop
session files with left-frame=-1 causing the same problem on reload (#4654). git-svn-id: svn://localhost/ardour2/branches/3.0@11339 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 96ae169aed..1dd5256d2a 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -1581,6 +1581,10 @@ Editor::temporal_zoom_by_frame (framepos_t start, framepos_t end, const string &
new_leftmost = 0;
}
+ if (new_leftmost < 0) {
+ new_leftmost = 0;
+ }
+
reposition_and_zoom (new_leftmost, new_fpu);
}