summaryrefslogtreecommitdiff
path: root/gtk2_ardour/streamview.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-08-23 19:42:01 +0000
committerCarl Hetherington <carl@carlh.net>2009-08-23 19:42:01 +0000
commitc91da28eb2552c4270e7f07026ee9609c3af717e (patch)
treeb884c0d65bae5118bfd1f8326e648721aec36ce4 /gtk2_ardour/streamview.cc
parentdffd30baf9f9db9310ddf82a5a7d05f96354acd6 (diff)
Some improvements to performance with crossfades: don't recompute a whole track's crossfade curves
when one region is moved and the display is overlaid; use a std::map for an AudioStreamView's crossfades list so that add_crossfade can find whether a CrossfadeView already exists without looking through the whole list. git-svn-id: svn://localhost/ardour2/branches/3.0@5571 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/streamview.cc')
-rw-r--r--gtk2_ardour/streamview.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc
index 35b8576a48..4a10708e8c 100644
--- a/gtk2_ardour/streamview.cc
+++ b/gtk2_ardour/streamview.cc
@@ -312,7 +312,7 @@ StreamView::playlist_modified (boost::shared_ptr<Diskstream> 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()) {
+ if (ds->playlist() && _layer_display == Stacked) {
_layers = ds->playlist()->top_layer() + 1;
update_contents_height ();
update_coverage_frames ();