[Summary] Fixed issue with shifted playhead polygon when new session is created

This commit is contained in:
GZharun 2014-09-15 14:28:13 +03:00 committed by Paul Davis
parent 050d46a33e
commit 8962adab4e
1 changed files with 4 additions and 0 deletions

View File

@ -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 */
}