diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-26 01:51:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-26 01:51:50 +0000 |
commit | c07f42b9f4162ec52932b0763cba2c649cb79f56 (patch) | |
tree | db2654675ae4e138ec38de001a30ecb805150c4b /gtk2_ardour/ardour_ui.cc | |
parent | 8cfc9679af27d290519a7b2c1216aa668a965b53 (diff) |
Fix #2932; arrange the view more carefully when going to start / end / wallclock.
git-svn-id: svn://localhost/ardour2/branches/3.0@6183 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 343d933699..6bfcac13c6 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1383,13 +1383,12 @@ ARDOUR_UI::transport_goto_start () if (session) { session->goto_start(); - /* force displayed area in editor to start no matter what "follow playhead" setting is. */ if (editor) { - editor->reset_x_origin (session->current_start_frame()); + editor->center_screen (session->current_start_frame ()); } } } @@ -1434,7 +1433,7 @@ ARDOUR_UI::transport_goto_wallclock () */ if (editor) { - editor->reset_x_origin (frames - (editor->current_page_frames()/2)); + editor->center_screen (frames); } } } @@ -1443,7 +1442,7 @@ void ARDOUR_UI::transport_goto_end () { if (session) { - nframes_t frame = session->current_end_frame(); + nframes_t const frame = session->current_end_frame(); session->request_locate (frame); /* force displayed area in editor to start no matter @@ -1451,7 +1450,7 @@ ARDOUR_UI::transport_goto_end () */ if (editor) { - editor->reset_x_origin (frame); + editor->center_screen (frame); } } } |