diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-06 15:05:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-06 15:05:51 +0000 |
commit | 9eb8d34ecfc0bb5aa98700f8bd5c813f19a9f547 (patch) | |
tree | ebe3dde0599266d83f2d5780762c05650176ba6a /gtk2_ardour/audio_region_view.cc | |
parent | 36b4930c4553224c2191bdff452d34155efd2d5b (diff) |
proper fix for stereo region wave drawing bug; make trackheight operations apply to all selected tracks
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3019 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r-- | gtk2_ardour/audio_region_view.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 8f5413560a..9601741662 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -122,7 +122,7 @@ AudioRegionView::init (Gdk::Color& basic_color, bool wfd) // FIXME: Some redundancy here with RegionView::init. Need to figure out // where order is important and where it isn't... - RegionView::init (basic_color, true); + RegionView::init (basic_color, wfd); XMLNode *node; @@ -786,6 +786,15 @@ AudioRegionView::create_waves () wave_caches.push_back (WaveView::create_cache ()); if (wait_for_data) { + if (audio_region()->source(n)->peaks_ready (bind (mem_fun(*this, &AudioRegionView::peaks_ready_handler), n), data_ready_connection)) { + create_one_wave (n, true); + } else { + // we'll get a PeaksReady signal from the source in the future + // and will call create_one_wave(n) then. + } + + } else { + create_one_wave (n, true); } |