diff options
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r-- | gtk2_ardour/editor_tempodisplay.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 35f74b6d54..b71ab32087 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -452,15 +452,14 @@ Editor::mouse_add_new_meter_event (framepos_t frame) Timecode::BBT_Time requested; meter_dialog.get_bbt_time (requested); - const double beat = map.beat_at_bbt (requested); - const double al_frame = map.frame_at_beat (beat); + const double al_frame = map.frame_at_bbt (requested); begin_reversible_command (_("add meter mark")); XMLNode &before = map.get_state(); if (meter_dialog.get_lock_style() == MusicTime) { - map.add_meter (Meter (bpb, note_type), beat, requested, 0, MusicTime); + map.add_meter (Meter (bpb, note_type), requested, 0, MusicTime); } else { - map.add_meter (Meter (bpb, note_type), beat, requested, al_frame, AudioTime); + map.add_meter (Meter (bpb, note_type), requested, al_frame, AudioTime); } _session->add_command(new MementoCommand<TempoMap>(map, &before, &map.get_state())); |