diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index ea142839fb..a12489dc03 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1393,7 +1393,7 @@ private: void set_tempo_from_region (); void use_range_as_bar (); - void define_one_bar (Temporal::timepos_t const & start, Temporal::timepos_t const & end); + void define_one_bar (Temporal::timepos_t const & start, Temporal::timepos_t const & end, std::string const & from); void audition_region_from_region_list (); diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 1affc59449..ade754be11 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7433,7 +7433,7 @@ Editor::set_tempo_from_region () RegionView* rv = rs.front(); - define_one_bar (rv->region()->position(), rv->region()->end()); + define_one_bar (rv->region()->position(), rv->region()->end(), _("region")); } void @@ -7441,12 +7441,12 @@ Editor::use_range_as_bar () { timepos_t start, end; if (get_edit_op_range (start, end)) { - define_one_bar (start, end); + define_one_bar (start, end, _("range")); } } void -Editor::define_one_bar (timepos_t const & start, timepos_t const & end) +Editor::define_one_bar (timepos_t const & start, timepos_t const & end, std::string const & from) { timecnt_t length = start.distance (end); @@ -7518,7 +7518,7 @@ Editor::define_one_bar (timepos_t const & start, timepos_t const & end) */ } - TempoMapChange tmc (*this, _("set tempo from region")); + TempoMapChange tmc (*this, string_compose (_("set tempo from %1"), from)); if (do_global) { tmc.map().set_tempo (Tempo (beats_per_minute, t.end_note_types_per_minute(), t.note_type()), timepos_t());