From 86d2afaf4eccd9a73ff33c1f3aba7856e97e14c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Aug 2011 13:27:48 +0000 Subject: colinf's patch for #4223. git-svn-id: svn://localhost/ardour2/branches/3.0@9952 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_canvas.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 9cd23e0112..1677baa001 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -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; -- cgit v1.2.3