diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-09 13:19:08 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-09 13:19:08 +0000 |
commit | ee8634cd87ed6b7f199cca30801fcc0f64385cc1 (patch) | |
tree | 646761244efd2278c3f871dcc8454c87d370a3b9 /gtk2_ardour | |
parent | a766fe1fd9852ea6b041ba257e588fca7a032cb9 (diff) |
Set up _old_follow_playhead correctly in all cases; should fix #4603.
git-svn-id: svn://localhost/ardour2/branches/3.0@12624 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_summary.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index c8e794b2ef..d04e2e7d60 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -310,6 +310,8 @@ EditorSummary::centre_on_click (GdkEventButton* ev) bool EditorSummary::on_button_press_event (GdkEventButton* ev) { + _old_follow_playhead = _editor->follow_playhead (); + if (ev->button == 1) { pair<double, double> xr; @@ -331,7 +333,6 @@ EditorSummary::on_button_press_event (GdkEventButton* ev) _zoom_position = get_position (ev->x, ev->y); _zoom_dragging = true; _editor->_dragging_playhead = true; - _old_follow_playhead = _editor->follow_playhead (); _editor->set_follow_playhead (false); if (suspending_editor_updates ()) { @@ -361,7 +362,6 @@ EditorSummary::on_button_press_event (GdkEventButton* ev) _move_dragging = true; _moved = false; _editor->_dragging_playhead = true; - _old_follow_playhead = _editor->follow_playhead (); _editor->set_follow_playhead (false); } } |