From 4977924a6e0914f40adfb3d66b714045188a877d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 27 Jul 2010 02:10:59 +0000 Subject: [PATCH] Make simple 2-point gain envelopes considered interesting if they are not constant gain. git-svn-id: svn://localhost/ardour2/branches/3.0@7509 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_region_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 138601bf07..c895a0663c 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -163,7 +163,8 @@ AudioRegionView::init (Gdk::Color const & basic_color, bool wfd) } /* make envelope visible if it has anything interesting in it */ - if (audio_region()->envelope()->size() > 2) { + boost::shared_ptr env = audio_region()->envelope (); + if (env->size() > 2 || (env->size() == 2 && env->front()->value != env->back()->value)) { _flags |= EnvelopeVisible; }