13
0

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
This commit is contained in:
Paul Davis 2021-01-01 15:59:47 -07:00
parent b5e0bce101
commit 3c857b697f

View File

@ -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());