diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index e7affd37b3..8b8904d7e5 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -229,9 +229,14 @@ Editor::draw_tempo_marks () while (t != tempi.end() && mm != tempo_marks.end()) { - Temporal::Point const & mark_point ((*mm)->point()); Temporal::TempoPoint const & metric_point (*t); + if (dynamic_cast (&metric_point)) { + continue; + } + + Temporal::Point const & mark_point ((*mm)->point()); + if (mark_point.sclock() < metric_point.sclock()) { /* advance through markers, deleting the unused ones */ @@ -292,9 +297,14 @@ Editor::draw_meter_marks () while (m != meters.end() && mm != meter_marks.end()) { - Temporal::Point const & mark_point ((*mm)->point()); Temporal::MeterPoint const & metric_point (*m); + if (dynamic_cast (&metric_point)) { + continue; + } + + Temporal::Point const & mark_point ((*mm)->point()); + if (mark_point.sclock() < metric_point.sclock()) { /* advance through markers, deleting the unused ones */