summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_streamview.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-11 03:14:32 +0000
committerDavid Robillard <d@drobilla.net>2007-09-11 03:14:32 +0000
commit4cd6ef8b5c7299db4f042de725285ea2db3d852d (patch)
tree0829594f982d5e5bba38574511d8579467417e69 /gtk2_ardour/automation_streamview.cc
parenta7fb6f897f53e4bec037abfac6ff2d0a9436f7f8 (diff)
Always show CC region, whether empty or not (ie whether MidiModel contains any events for that CC or not). Can't add events though... yet....
git-svn-id: svn://localhost/ardour2/trunk@2451 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r--gtk2_ardour/automation_streamview.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc
index 4aebcbf34c..2ede053c7b 100644
--- a/gtk2_ardour/automation_streamview.cc
+++ b/gtk2_ardour/automation_streamview.cc
@@ -86,13 +86,9 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region
const boost::shared_ptr<AutomationControl> control = region->control(_controller->controllable()->parameter());
- if ( ! control) {
- cerr << "No " << _controller->controllable()->parameter().to_string()
- << " for " << region->name() << endl;
- return NULL;
- }
-
- const boost::shared_ptr<AutomationList> list = control->list();
+ boost::shared_ptr<AutomationList> list;
+ if (control)
+ list = control->list();
AutomationRegionView *region_view;
std::list<RegionView *>::iterator i;