From 604abffeb5f4b4682382d7f859f49d151ed1446a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 29 May 2014 05:30:13 +0200 Subject: fix prev commit --- libs/canvas/curve.cc | 3 +++ libs/canvas/xfade_curve.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libs/canvas/curve.cc b/libs/canvas/curve.cc index c2dd30ac16..827dee206d 100644 --- a/libs/canvas/curve.cc +++ b/libs/canvas/curve.cc @@ -198,6 +198,9 @@ Curve::render (Rect const & area, Cairo::RefPtr context) const last_y = round(window_space.y); context->line_to (last_x - .5 , last_y + .5); } + if (last_x != round(window_space.x) || last_y != round(window_space.y)) { + context->line_to (window_space.x - .5 , window_space.y + .5); + } switch (curve_fill) { case None: diff --git a/libs/canvas/xfade_curve.cc b/libs/canvas/xfade_curve.cc index 90871fb6d9..d137cf6cbc 100644 --- a/libs/canvas/xfade_curve.cc +++ b/libs/canvas/xfade_curve.cc @@ -174,6 +174,9 @@ XFadeCurve::get_path(Rect const & area, Cairo::RefPtr context, C last_y = round(window_space.y); context->line_to (last_x - .5 , last_y + .5); } + if (last_x != round(window_space.x) || last_y != round(window_space.y)) { + context->line_to (window_space.x - .5 , window_space.y + .5); + } } return context->copy_path (); } -- cgit v1.2.3