13
0

colinf's patch for #4223.

git-svn-id: svn://localhost/ardour2/branches/3.0@9952 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-08-03 13:27:48 +00:00
parent 8ce5bacfe4
commit 86d2afaf4e

View File

@ -704,7 +704,7 @@ Editor::ensure_time_axis_view_is_visible (const TimeAxisView& tav)
double v = vertical_adjustment.get_value ();
if (begin < v || begin > v + _canvas_height) {
if (begin < v || begin + tav.current_height() > v + _canvas_height - canvas_timebars_vsize) {
/* try to put the TimeAxisView roughly central */
if (begin >= _canvas_height/2.0) {
begin -= _canvas_height/2.0;