MIDI list editor: fix note-length dropdown (#9457)

This commit is contained in:
Robin Gareus 2023-09-24 12:55:10 +02:00
parent 6e24a409f4
commit 2d24a5fe88
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -659,7 +659,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
}
if (x != note_length_map.end()) {
bval = x->first / Temporal::ticks_per_beat;
bval = Temporal::Beats::ticks (x->first);
}
} else {
@ -680,7 +680,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
if (x != note_length_map.end()) {
/* convert to beats */
bval = x->first / Temporal::ticks_per_beat;
bval = Temporal::Beats::ticks (x->first);
}
}
}