X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcrossfade_view.cc;h=d553514c811878ee312796b7cd20c731cda0513a;hb=19e97d1d64e8aa6d87d79d1f6332065992e5e027;hp=0c420e74ade786fff73cdf22d5ef84f3f71386fb;hpb=bb797943ddaae0a904b140fec58f6367fdf87d07;p=ardour.git diff --git a/gtk2_ardour/crossfade_view.cc b/gtk2_ardour/crossfade_view.cc index 0c420e74ad..d553514c81 100644 --- a/gtk2_ardour/crossfade_view.cc +++ b/gtk2_ardour/crossfade_view.cc @@ -179,7 +179,7 @@ CrossfadeView::redraw_curves () /* Hence the number of points that we will render */ int32_t const npoints = editor.frame_to_pixel (max_frames - min_frames); - + if (!_visible || !crossfade->active() || npoints < 3) { fade_in->hide(); fade_out->hide(); @@ -215,7 +215,7 @@ CrossfadeView::redraw_curves () p.set_x (xoff + i + 1); p.set_y (_height - ((_height - 2) * vec[i])); } - + fade_out->property_points() = *points; delete [] vec; @@ -298,7 +298,7 @@ CrossfadeView::horizontal_position_changed () the other case where the horizontal position change will uncover `undrawn' sections). */ - + if (!_all_in_view) { redraw_curves (); }