diff --git a/gtk2_ardour/transform_dialog.cc b/gtk2_ardour/transform_dialog.cc index 762f504aa2..f31ac42001 100644 --- a/gtk2_ardour/transform_dialog.cc +++ b/gtk2_ardour/transform_dialog.cc @@ -179,6 +179,9 @@ set_spinner_for(Gtk::SpinButton& spinner, spinner.set_digits(0); break; } + spinner.set_value( + std::min(spinner.get_adjustment()->get_upper(), + std::max(spinner.get_adjustment()->get_lower(), spinner.get_value()))); } void