From 3c857b697f20faffd409d839a67c8600a1f536a9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 1 Jan 2021 15:59:47 -0700 Subject: [PATCH] fix incorrect call to Tempo constructor that reordered note type and end tempo Probably should find a better API for the constructor that makes this impossible --- gtk2_ardour/editor_tempodisplay.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 3dcb58996f..04b2442d3b 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -551,9 +551,10 @@ Editor::edit_tempo_section (TempoPoint& section) double bpm = tempo_dialog.get_bpm (); double end_bpm = tempo_dialog.get_end_bpm (); - double nt = tempo_dialog.get_note_type (); + int nt = tempo_dialog.get_note_type (); bpm = max (0.01, bpm); - const Tempo tempo (bpm, nt, end_bpm); + + const Tempo tempo (bpm, end_bpm, nt); TempoMap::SharedPtr tmap (TempoMap::write_copy());