mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +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,
|
Evoral::Beats position,
|
||||||
std::vector<Notes>& seqs);
|
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:
|
private:
|
||||||
bool _shrink_only;
|
bool _shrink_only;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ Legatize::operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
|
||||||
Evoral::Beats position,
|
Evoral::Beats position,
|
||||||
std::vector<Legatize::Notes>& seqs)
|
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 (std::vector<Legatize::Notes>::iterator s = seqs.begin(); s != seqs.end(); ++s) {
|
||||||
for (Legatize::Notes::iterator i = (*s).begin(); i != (*s).end();) {
|
for (Legatize::Notes::iterator i = (*s).begin(); i != (*s).end();) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue