From ee8634cd87ed6b7f199cca30801fcc0f64385cc1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Jun 2012 13:19:08 +0000 Subject: [PATCH] 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 --- gtk2_ardour/editor_summary.cc | 4 ++-- 1 file 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 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); } }