diff options
author | Doug McLain <doug@nostar.net> | 2008-06-19 07:52:32 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2008-06-19 07:52:32 +0000 |
commit | 7d2d9a23171f9c35c7b53224f8aa6be32c077352 (patch) | |
tree | f7b44a9736aa9a491abe48b9d17e0b9a030246af /gtk2_ardour/editor_ops.cc | |
parent | a64926234f8a172adea2dc01280b8a9ce3f74fd8 (diff) |
Fixes and changes to the horizontal canvas scrolling, per our conversation on IRC and mantis #2275. When the playhead is seeked past the end marker, the canvas will grow as needed. The Zoom to Session button will now reset the canvas size to start <--> end plus a little extra after end, so the end marker is visible.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3480 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 50980e4d09..fa5c3d9949 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1828,6 +1828,7 @@ Editor::temporal_zoom_session () ENSURE_GUI_THREAD (mem_fun (*this, &Editor::temporal_zoom_session)); if (session) { + last_canvas_frame = ((session->current_end_frame() - session->current_start_frame()) + (current_page_frames() / 24)); temporal_zoom_by_frame (session->current_start_frame(), session->current_end_frame(), "zoom to session"); } } |