Fix reset_objects for MIDI automation views.

git-svn-id: svn://localhost/ardour2/branches/3.0@7551 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2010-08-06 00:58:51 +00:00
parent 22a8404df4
commit 6d06b12446

View File

@@ -674,7 +674,16 @@ AutomationTimeAxisView::cut_copy_clear_one (AutomationLine& line, Selection& sel
void
AutomationTimeAxisView::reset_objects (PointSelection& selection)
{
reset_objects_one (*_line, selection);
list<boost::shared_ptr<AutomationLine> > lines;
if (_line) {
lines.push_back (_line);
} else if (_view) {
lines = _view->get_lines ();
}
for (list<boost::shared_ptr<AutomationLine> >::iterator i = lines.begin(); i != lines.end(); ++i) {
reset_objects_one (**i, selection);
}
}
void