From 360f87b2176300e4aafd27936d1f4dc4cf1e48ee Mon Sep 17 00:00:00 2001 From: nick_m Date: Sat, 4 Jun 2016 07:03:18 +1000 Subject: [PATCH] Fix FramedCurve Outside fill for curve. --- libs/canvas/framed_curve.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc index c539a50150..748fb03ebd 100644 --- a/libs/canvas/framed_curve.cc +++ b/libs/canvas/framed_curve.cc @@ -241,9 +241,9 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr context) c break; case Outside: context->stroke_preserve (); - window_space = item_to_window (last_sample); + window_space = item_to_window (Duple (last_sample.x, 0.0)); context->line_to (window_space.x, window_space.y); - window_space = item_to_window (first_sample); + window_space = item_to_window (Duple (first_sample.x, 0.0)); context->line_to (window_space.x, window_space.y); context->close_path(); setup_fill_context(context);