From ff52fa56022aed33d8cc80511c2f5a5f4317d200 Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Fri, 10 Oct 2008 21:38:38 +0000 Subject: Don't set colours twice in new TimeAxisViewItems (from 3.0), fix the nostar ruler hiding bug, rejig ruler bars again, this time making them physical_screen_width wide and never moving them - preventing artefacts while hiding. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3910 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_route_list.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/editor_route_list.cc') 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) { -- cgit v1.2.3