fix prev commit
authorRobin Gareus <robin@gareus.org>
Thu, 29 May 2014 03:30:13 +0000 (05:30 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 29 May 2014 03:30:13 +0000 (05:30 +0200)
libs/canvas/curve.cc
libs/canvas/xfade_curve.cc

index c2dd30ac163d295c1504968ff17c7f41cb2aea12..827dee206d052f643a15f793fae34eae3d6a8985 100644 (file)
@@ -198,6 +198,9 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> 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:
index 90871fb6d95fdc649fb08ba503ec29d34cececec..d137cf6cbc12576e64d2433286f37a2fb0f5db41 100644 (file)
@@ -174,6 +174,9 @@ XFadeCurve::get_path(Rect const & area, Cairo::RefPtr<Cairo::Context> 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 ();
 }