Position playhead correctly on 'P' in editor summary pane, taking account of start offset. Fixes #5213.

git-svn-id: svn://localhost/ardour2/branches/3.0@13653 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Colin Fletcher 2012-12-12 22:10:03 +00:00
parent 37c7d0cbc1
commit 17439ac72c

View file

@ -316,7 +316,7 @@ EditorSummary::on_key_press_event (GdkEventKey* key)
if (key->keyval == set_playhead_accel.accel_key && (int) key->state == set_playhead_accel.accel_mods) {
if (_session) {
get_pointer (x, y);
_session->request_locate ((framepos_t) x / _x_scale, _session->transport_rolling());
_session->request_locate (_start + (framepos_t) x / _x_scale, _session->transport_rolling());
return true;
}
}