# HG changeset patch # User Chris Cannam # Date 1146228737 0 # Node ID 01f27a282c9053852195c3cf1f82e845f6cbf332 # Parent 82482231b6b11edf644084379e11671a95078970 * Fix failure to pull out values and durations when copying from a layer diff -r 82482231b6b1 -r 01f27a282c90 layer/NoteLayer.cpp --- a/layer/NoteLayer.cpp Thu Apr 27 17:29:19 2006 +0000 +++ b/layer/NoteLayer.cpp Fri Apr 28 12:52:17 2006 +0000 @@ -766,7 +766,7 @@ for (NoteModel::PointList::iterator i = points.begin(); i != points.end(); ++i) { if (s.contains(i->frame)) { - Clipboard::Point point(i->frame, i->label); + Clipboard::Point point(i->frame, i->value, i->duration, i->label); to.addPoint(point); } } diff -r 82482231b6b1 -r 01f27a282c90 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Thu Apr 27 17:29:19 2006 +0000 +++ b/layer/TimeValueLayer.cpp Fri Apr 28 12:52:17 2006 +0000 @@ -1067,7 +1067,7 @@ for (SparseTimeValueModel::PointList::iterator i = points.begin(); i != points.end(); ++i) { if (s.contains(i->frame)) { - Clipboard::Point point(i->frame, i->label); + Clipboard::Point point(i->frame, i->value, i->label); to.addPoint(point); } }