summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2007-03-06 04:15:28 +0000
committerDoug McLain <doug@nostar.net>2007-03-06 04:15:28 +0000
commitd778a2494aec9194041185da49fd63cfbe0d2b12 (patch)
treea91a3ed1e64f7a4310f1c5d634dfca3007269a15 /gtk2_ardour/editor.cc
parent28cdfafa278de3927005122a001da4ec7e90f1e9 (diff)
Fix for edit cursor clock being out of sync with edit cursor when session is loaded
git-svn-id: svn://localhost/ardour2/trunk@1560 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 2bd6c04f9d..aa37d297ed 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -3684,3 +3684,12 @@ Editor::sort_track_selection ()
selection->tracks.sort (cmp);
}
+nframes_t
+Editor::edit_cursor_position(bool sync)
+{
+ if (sync && edit_cursor->current_frame != edit_cursor_clock.current_time()) {
+ edit_cursor_clock.set(edit_cursor->current_frame, true);
+ }
+
+ return edit_cursor->current_frame;
+}