From 09eee1bb7c2463d426fc5864036af875ebf95d3e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Aug 2009 01:01:18 +0000 Subject: Remove unused method in RouteTimeAxisView. Fix bug with switching to layered region mode. Optimise Playlist::relayer(). git-svn-id: svn://localhost/ardour2/branches/3.0@5572 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/streamview.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/streamview.cc') diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc index 4a10708e8c..c68985ee77 100644 --- a/gtk2_ardour/streamview.cc +++ b/gtk2_ardour/streamview.cc @@ -312,11 +312,13 @@ StreamView::playlist_modified (boost::shared_ptr ds) ENSURE_GUI_THREAD (bind (mem_fun (*this, &StreamView::playlist_modified_weak), ds)); /* update layers count and the y positions and heights of our regions */ - if (ds->playlist() && _layer_display == Stacked) { + if (ds->playlist()) { _layers = ds->playlist()->top_layer() + 1; + } + + if (_layer_display == Stacked) { update_contents_height (); update_coverage_frames (); - //redisplay_diskstream (); } } @@ -358,7 +360,7 @@ StreamView::playlist_changed (boost::shared_ptr ds) /* catch changes */ playlist_connections.push_back (ds->playlist()->Modified.connect (bind ( - mem_fun (*this, &StreamView::playlist_modified_weak), ds))); + mem_fun (*this, &StreamView::playlist_modified_weak), ds))); playlist_connections.push_back (ds->playlist()->RegionAdded.connect ( mem_fun (*this, &StreamView::add_region_view_weak))); -- cgit v1.2.3