diff options
Diffstat (limited to 'gtk2_ardour/editor_route_list.cc')
-rw-r--r-- | gtk2_ardour/editor_route_list.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_route_list.cc b/gtk2_ardour/editor_route_list.cc index 4113655320..2055091953 100644 --- a/gtk2_ardour/editor_route_list.cc +++ b/gtk2_ardour/editor_route_list.cc @@ -314,15 +314,14 @@ Editor::redisplay_route_list () ++n; } - full_canvas_height = position; - - vertical_adjustment.set_upper (position + canvas_timebars_vsize); + full_canvas_height = position + canvas_timebars_vsize; + vertical_adjustment.set_upper (full_canvas_height); if ((vertical_adjustment.get_value() + canvas_height) > vertical_adjustment.get_upper()) { /* We're increasing the size of the canvas while the bottom is visible. We scroll down to keep in step with the controls layout. */ - vertical_adjustment.set_value (position + canvas_timebars_vsize - canvas_height); + vertical_adjustment.set_value (full_canvas_height - canvas_height); } if (!route_redisplay_does_not_reset_order_keys && !route_redisplay_does_not_sync_order_keys) { |