Tempo ramps - fix ambiguous api, fix flickering tempo curves.
[ardour.git] / gtk2_ardour / editor_ops.cc
index 960b7b3123fda7dfa71346de68bf1cc84ff1e679..39996e384008f19de5933b56db4e55de1bbe413d 100644 (file)
@@ -6552,7 +6552,7 @@ Editor::define_one_bar (framepos_t start, framepos_t end)
        } else if (t.frame() == start) {
                _session->tempo_map().change_existing_tempo_at (start, beats_per_minute, t.note_type());
        } else {
-               _session->tempo_map().add_tempo (Tempo (beats_per_minute, t.note_type()), start, TempoSection::Constant);
+               _session->tempo_map().add_tempo_frame (Tempo (beats_per_minute, t.note_type()), start, TempoSection::Constant);
        }
 
        XMLNode& after (_session->tempo_map().get_state());