diff options
author | Robin Gareus <robin@gareus.org> | 2014-05-29 05:30:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-05-29 05:30:13 +0200 |
commit | 604abffeb5f4b4682382d7f859f49d151ed1446a (patch) | |
tree | ce6850b0269a49df9a5587d8f504fa5983c8c5f4 /libs/canvas/curve.cc | |
parent | 86e7d86089098347d67cf59284576414609c864c (diff) |
fix prev commit
Diffstat (limited to 'libs/canvas/curve.cc')
-rw-r--r-- | libs/canvas/curve.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<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: |