diff options
Diffstat (limited to 'gtk2_ardour/crossfade_view.cc')
-rw-r--r-- | gtk2_ardour/crossfade_view.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 (); } |