13
0

Fix crash when editing meter via main clock.

This commit is contained in:
nick_m 2016-06-09 06:44:39 +10:00
parent 98455f2744
commit c9b6e0a7b3

View File

@ -102,8 +102,8 @@ void
MainClock::edit_current_meter ()
{
if (!PublicEditor::instance().session()) return;
ARDOUR::MeterSection ms = PublicEditor::instance().session()->tempo_map().meter_section_at_frame (absolute_time());
PublicEditor::instance().edit_meter_section (&ms);
ARDOUR::MeterSection* ms = const_cast<ARDOUR::MeterSection*>(&PublicEditor::instance().session()->tempo_map().meter_section_at_frame (absolute_time()));
PublicEditor::instance().edit_meter_section (ms);
}
void