mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
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:
parent
8ce5bacfe4
commit
86d2afaf4e
1 changed files with 1 additions and 1 deletions
|
|
@ -704,7 +704,7 @@ Editor::ensure_time_axis_view_is_visible (const TimeAxisView& tav)
|
||||||
|
|
||||||
double v = vertical_adjustment.get_value ();
|
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 */
|
/* try to put the TimeAxisView roughly central */
|
||||||
if (begin >= _canvas_height/2.0) {
|
if (begin >= _canvas_height/2.0) {
|
||||||
begin -= _canvas_height/2.0;
|
begin -= _canvas_height/2.0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue