13
0

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
This commit is contained in:
Carl Hetherington 2012-06-09 13:19:08 +00:00
parent a766fe1fd9
commit ee8634cd87

View File

@ -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);
}
}