From d118a60090e267f4a6a62d8573bebf1eeb5ae835 Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 16 Dec 2016 02:54:10 +1100 Subject: [PATCH] fix unused Outside filled framed curve for constant points outside the draw area. --- libs/canvas/framed_curve.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc index d5bb23f4e7..d8ba2e92c0 100644 --- a/libs/canvas/framed_curve.cc +++ b/libs/canvas/framed_curve.cc @@ -194,16 +194,15 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr context) c case Outside: context->stroke_preserve (); window_space = item_to_window (Duple(_points.back().x, 0.0)); - context->line_to (window_space.x, window_space.y); + context->line_to (last_point.x, window_space.y); window_space = item_to_window (Duple(_points.front().x, 0.0)); - context->line_to (window_space.x, window_space.y); + context->line_to (first_point.x, window_space.y); context->close_path(); setup_fill_context(context); context->fill (); break; } } else { - /* curve of at least 3 points */ /* find left and right-most sample */