diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 139479def7..86eb50401b 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -176,7 +176,7 @@ Editor::draw_metric_marks (TempoMap::Metrics const & metrics) if ((mtp = dynamic_cast(*i)) != 0) { - if (ms->map().time_domain() == BeatTime) { + if (mtp->map().time_domain() == BeatTime) { metric_marks.push_back (new BBTMarker (*this, *bbt_ruler, UIConfiguration::instance().color ("meter marker music"), "bar!", *mtp)); } else { metric_marks.push_back (new BBTMarker (*this, *bbt_ruler, UIConfiguration::instance().color ("meter marker"), "foo!", *mtp));