13
0

Fix crash when editing tempo via main clock.

This commit is contained in:
nick_m 2016-06-09 05:54:53 +10:00
parent 8de12a4015
commit 98455f2744

View File

@ -94,8 +94,8 @@ void
MainClock::edit_current_tempo ()
{
if (!PublicEditor::instance().session()) return;
ARDOUR::TempoSection ts = PublicEditor::instance().session()->tempo_map().tempo_section_at_frame (absolute_time());
PublicEditor::instance().edit_tempo_section (&ts);
ARDOUR::TempoSection* ts = const_cast<ARDOUR::TempoSection*>(&PublicEditor::instance().session()->tempo_map().tempo_section_at_frame (absolute_time()));
PublicEditor::instance().edit_tempo_section (ts);
}
void