diff options
author | Carl Hetherington <carl@carlh.net> | 2011-08-03 13:27:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-08-03 13:27:48 +0000 |
commit | 86d2afaf4eccd9a73ff33c1f3aba7856e97e14c1 (patch) | |
tree | 4715755378c1824a2fd030412ad9d94fe8abee8a /gtk2_ardour | |
parent | 8ce5bacfe4ae8940cba921fa7a8847625dc90fd5 (diff) |
colinf's patch for #4223.
git-svn-id: svn://localhost/ardour2/branches/3.0@9952 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |