From 877e896caf14f73b13834fdeaae090320eb0d76f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 Feb 2021 22:29:15 -0700 Subject: [PATCH] libtemporal: TempoMap::apply_with_metrics() needs to use *all* metrics (inc. MusicTimePoints) --- libs/temporal/temporal/tempo.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 249270c0a9..19bbe5990a 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -709,12 +709,9 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible template void apply_with_metrics (T& obj, void (T::*method)(Metrics const &)) { 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); } - for (Meters::iterator m = _meters.begin(); m != _meters.end(); ++m) { - metrics.push_back (&*m); - } (obj.*method)(metrics); }