From 9df1232febdfd2b8666330acb4895975ab3079d2 Mon Sep 17 00:00:00 2001 From: nick_m Date: Wed, 14 Oct 2015 04:46:33 +1100 Subject: [PATCH] Legatize::name () reflects its type. Fixes confusing undo record name. --- libs/ardour/ardour/legatize.h | 2 +- libs/ardour/legatize.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ardour/legatize.h b/libs/ardour/ardour/legatize.h index 78b384e1c7..aba65682a6 100644 --- a/libs/ardour/ardour/legatize.h +++ b/libs/ardour/ardour/legatize.h @@ -45,7 +45,7 @@ public: Evoral::Beats position, std::vector& 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; diff --git a/libs/ardour/legatize.cc b/libs/ardour/legatize.cc index 0c118a6a48..4d3d0f7d0e 100644 --- a/libs/ardour/legatize.cc +++ b/libs/ardour/legatize.cc @@ -34,7 +34,7 @@ Legatize::operator()(boost::shared_ptr model, Evoral::Beats position, std::vector& seqs) { - MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, "legatize"); + MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, name ()); for (std::vector::iterator s = seqs.begin(); s != seqs.end(); ++s) { for (Legatize::Notes::iterator i = (*s).begin(); i != (*s).end();) {