mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Legatize::name () reflects its type. Fixes confusing undo record name.
This commit is contained in:
parent
645b73c723
commit
f369be4769
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ public:
|
|||
Evoral::Beats position,
|
||||
std::vector<Notes>& seqs);
|
||||
|
||||
std::string name() const { return std::string ("legatize"); }
|
||||
std::string name () const { return (_shrink_only ? std::string ("remove overlap") : std::string ("legatize")); }
|
||||
|
||||
private:
|
||||
bool _shrink_only;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ Legatize::operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
|
|||
Evoral::Beats position,
|
||||
std::vector<Legatize::Notes>& seqs)
|
||||
{
|
||||
MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, "legatize");
|
||||
MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, name ());
|
||||
|
||||
for (std::vector<Legatize::Notes>::iterator s = seqs.begin(); s != seqs.end(); ++s) {
|
||||
for (Legatize::Notes::iterator i = (*s).begin(); i != (*s).end();) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue