Fix playhead behaviour on auto-return if follow playhead is not set.

git-svn-id: svn://localhost/ardour2/branches/3.0@7398 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-09 00:58:20 +00:00
parent 00cf0733a1
commit c1dafd7c0e
1 changed files with 5 additions and 2 deletions

View File

@ -980,11 +980,14 @@ Editor::map_position_change (nframes64_t frame)
{
ENSURE_GUI_THREAD (*this, &Editor::map_position_change, frame)
if (_session == 0 || !_follow_playhead) {
if (_session == 0) {
return;
}
center_screen (frame);
if (_follow_playhead) {
center_screen (frame);
}
playhead_cursor->set_position (frame);
}