From 41853ad9ea3afa76c06eed96972c7c11c5061d0f Mon Sep 17 00:00:00 2001 From: Jesse Chappell Date: Sat, 28 Apr 2007 13:31:44 +0000 Subject: [PATCH] fixed potential infinite loop when searching for automation events. git-svn-id: svn://localhost/ardour2/trunk@1760 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/insert.cc | 2 +- tools/osx_packaging/ardour2_mac_ui.rc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/insert.cc b/libs/ardour/insert.cc index 11d41cfab4..ccc73946b5 100644 --- a/libs/ardour/insert.cc +++ b/libs/ardour/insert.cc @@ -415,7 +415,7 @@ PluginInsert::automation_run (vector& bufs, uint32_t nbufs, nframes_t while (nframes) { - nframes_t cnt = min (((nframes_t) floor (next_event.when) - now), nframes); + nframes_t cnt = min (((nframes_t) ceil (next_event.when) - now), nframes); connect_and_run (bufs, nbufs, cnt, offset, true, now); diff --git a/tools/osx_packaging/ardour2_mac_ui.rc b/tools/osx_packaging/ardour2_mac_ui.rc index 6528257e74..977bc649e5 100644 --- a/tools/osx_packaging/ardour2_mac_ui.rc +++ b/tools/osx_packaging/ardour2_mac_ui.rc @@ -448,6 +448,7 @@ style "editor_hscrollbar" = "ardour_adjusters" # make it bigger. # GtkRange::slider_width = 27 + GtkScrollbar::slider_width = 27 } style "ardour_progressbars" = "default_buttons_menus"