diff options
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.cc')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.cc b/gtk2_ardour/strip_silence_dialog.cc index 7118d1c550..7d07a0ba3b 100644 --- a/gtk2_ardour/strip_silence_dialog.cc +++ b/gtk2_ardour/strip_silence_dialog.cc @@ -275,13 +275,13 @@ StripSilenceDialog::threshold_changed () framecnt_t StripSilenceDialog::minimum_length () const { - return _minimum_length->current_duration (views.front().view->region()->position()); + return std::max((framecnt_t)1, _minimum_length->current_duration (views.front().view->region()->position())); } framecnt_t StripSilenceDialog::fade_length () const { - return _fade_length->current_duration (views.front().view->region()->position()); + return std::max((framecnt_t)0, _fade_length->current_duration (views.front().view->region()->position())); } void |