From 2a8104f2f8e8fc7c800fd35c788c48eca09d6fdc Mon Sep 17 00:00:00 2001 From: nick_m Date: Wed, 25 May 2016 04:07:38 +1000 Subject: Yr,[p ramps - fix flickering tempo curves when zoomed in. --- libs/canvas/framed_curve.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/canvas/framed_curve.cc') diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc index e5dfb54b85..295deb8dad 100644 --- a/libs/canvas/framed_curve.cc +++ b/libs/canvas/framed_curve.cc @@ -188,11 +188,12 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr context) c Points::size_type right = n_samples; for (Points::size_type idx = 0; idx < n_samples - 1; ++idx) { - left = idx; window_space = item_to_window (Duple (samples[idx].x, 0.0)); if (window_space.x >= draw.x0) break; + left = idx; } - for (Points::size_type idx = n_samples; idx > left + 1; --idx) { + + for (Points::size_type idx = n_samples; idx > left; --idx) { window_space = item_to_window (Duple (samples[idx].x, 0.0)); if (window_space.x <= draw.x1) break; right = idx; -- cgit v1.2.3