From 62d4e0789aa0051b57193bd3bb667bbdd3aadd36 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 13 Feb 2023 16:51:00 -0700 Subject: [PATCH] tempo map: fix error in TempoMap::copy_points() that fails to reset _map ptr This left the _map ptr of all points in a copy of a map pointing to an old/dead TempoMap. --- libs/temporal/tempo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index d98ffbf28b..937f4e880d 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -787,6 +787,10 @@ TempoMap::copy_points (TempoMap const & other) _points.push_back (*tpp); } } + + for (auto & p : _points) { + p.set_map (*this); + } } MeterPoint*