diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-09 16:31:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-09 16:31:05 +0000 |
commit | 0a62044c2c51b38c900ed75d4037e6093901f387 (patch) | |
tree | 280b47be28b61f79e8988619ca7026962bd3f457 /gtk2_ardour/editor_ops.cc | |
parent | d28ecb2b93540e64a7c8dc820dcb6dcedc17a550 (diff) |
make strip silence work (again?)
git-svn-id: svn://localhost/ardour2/branches/3.0@8226 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 4ad205c425..798496af74 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4556,10 +4556,12 @@ Editor::strip_region_silence () StripSilenceDialog d (_session, audio_only); int const r = d.run (); - if (r == Gtk::RESPONSE_OK) { - StripSilence s (*_session, d.threshold (), d.minimum_length (), d.fade_length ()); + d.drop_rects (); + + if (r == Gtk::RESPONSE_OK) { + StripSilence s (*_session, d.silences(), d.fade_length()); apply_filter (s, _("strip silence"), &d); - } + } } Command* |