13
0

Legatize::name () reflects its type. Fixes confusing undo record name.

This commit is contained in:
nick_m 2015-10-14 04:46:33 +11:00
parent e6b35d2cdd
commit 9df1232feb
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();) {