summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-09 00:58:20 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-09 00:58:20 +0000
commitc1dafd7c0e182cee66420260241759dfaa9467d5 (patch)
tree4c72a57d2c834dd2f55e969848f501c249876840 /gtk2_ardour
parent00cf0733a1c528311b124100b9ccfb556ce2e3d9 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index d1260011ef..a9dbe9f7dd 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -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);
}