diff options
author | David Robillard <d@drobilla.net> | 2008-09-21 16:35:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-21 16:35:55 +0000 |
commit | 073a94350bced3f0f5ec470340a0f02fec137f3b (patch) | |
tree | 5321815b068644c4c974e77e5d4be4b14829cb45 /gtk2_ardour/automation_region_view.cc | |
parent | e14187aadd574d46c82d8eb0d151b526b84ddcc7 (diff) |
Fix crash on dragging a region with a visible automation region that has no line.
git-svn-id: svn://localhost/ardour2/branches/3.0@3780 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_region_view.cc')
-rw-r--r-- | gtk2_ardour/automation_region_view.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index b581cb9a9d..c213b3feeb 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -116,12 +116,6 @@ AutomationRegionView::add_automation_event (GdkEvent* event, nframes_t when, dou _line->the_list()->add (when, y); - boost::shared_ptr<ARDOUR::MidiRegion> mr = boost::dynamic_pointer_cast<ARDOUR::MidiRegion>(_region); - if (mr) { - cout << "ADD TO LIST: " << _line->the_list().get() << " ON " << _region - << " (model " << mr->midi_source(0)->model() << ")" << endl; - } - XMLNode& after = _line->the_list()->get_state(); view->session().commit_reversible_command (new MementoCommand<ARDOUR::AutomationList>( *_line->the_list(), &before, &after)); |