summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-12-09 18:17:36 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-12-09 18:17:36 +0000
commitebf3762fa91d911af411f1b5c68e3c67f2c47170 (patch)
treea39eacadb7c1010354ad6776a75d93cee4580c71 /gtk2_ardour/editor_ops.cc
parent0a62044c2c51b38c900ed75d4037e6093901f387 (diff)
fix computation of silence text, and its display. it is still not on top of the canvas, which is a small problem
git-svn-id: svn://localhost/ardour2/branches/3.0@8227 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 798496af74..4bf5a70cd8 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -4559,7 +4559,9 @@ Editor::strip_region_silence ()
d.drop_rects ();
if (r == Gtk::RESPONSE_OK) {
- StripSilence s (*_session, d.silences(), d.fade_length());
+ ARDOUR::AudioIntervalMap silences;
+ d.silences (silences);
+ StripSilence s (*_session, silences, d.fade_length());
apply_filter (s, _("strip silence"), &d);
}
}