libtemporal: TempoMap::apply_with_metrics() needs to use *all* metrics (inc. MusicTimePoints)
This commit is contained in:
parent
a49ed5505e
commit
877e896caf
|
@ -709,12 +709,9 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
|
||||||
|
|
||||||
template<class T> void apply_with_metrics (T& obj, void (T::*method)(Metrics const &)) {
|
template<class T> void apply_with_metrics (T& obj, void (T::*method)(Metrics const &)) {
|
||||||
Metrics metrics;
|
Metrics metrics;
|
||||||
for (Tempos::iterator t = _tempos.begin(); t != _tempos.end(); ++t) {
|
for (Points::iterator t = _points.begin(); t != _points.end(); ++t) {
|
||||||
metrics.push_back (&*t);
|
metrics.push_back (&*t);
|
||||||
}
|
}
|
||||||
for (Meters::iterator m = _meters.begin(); m != _meters.end(); ++m) {
|
|
||||||
metrics.push_back (&*m);
|
|
||||||
}
|
|
||||||
(obj.*method)(metrics);
|
(obj.*method)(metrics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user