summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_cursors.cc
diff options
context:
space:
mode:
authorGZharun <grygoriiz@wavesglobal.com>2014-09-15 14:28:13 +0300
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-11 08:53:26 -0500
commit8962adab4e02c3a917a6ce7d0624631d8e1ae71b (patch)
treeb485fdebacc3c83a1b200a6921bd6ff7daa60442 /gtk2_ardour/editor_cursors.cc
parent050d46a33e80be0e9ac88788a7f6a06442fb7c55 (diff)
[Summary] Fixed issue with shifted playhead polygon when new session is created
Diffstat (limited to 'gtk2_ardour/editor_cursors.cc')
-rw-r--r--gtk2_ardour/editor_cursors.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc
index e0af33575b..ed5f313013 100644
--- a/gtk2_ardour/editor_cursors.cc
+++ b/gtk2_ardour/editor_cursors.cc
@@ -47,6 +47,8 @@ EditorCursor::EditorCursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,Ardour
_track_canvas_item->Event.connect (sigc::bind (sigc::mem_fun (ed, callbck), _track_canvas_item));
_track_canvas_item->set_y1 (ArdourCanvas::COORD_MAX);
+
+ _track_canvas_item->set_x (0);
_current_frame = 1; /* force redraw at 0 */
}
@@ -62,6 +64,8 @@ EditorCursor::EditorCursor (Editor& ed)
_track_canvas_item->set_y1 (ArdourCanvas::COORD_MAX);
_track_canvas_item->set_ignore_events (true);
+ _track_canvas_item->set_x (0);
+
_current_frame = 1; /* force redraw at 0 */
}