Legatize::name () reflects its type. Fixes confusing undo record name.
This commit is contained in:
parent
e6b35d2cdd
commit
9df1232feb
@ -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…
Reference in New Issue
Block a user