diff options
author | David Robillard <d@drobilla.net> | 2015-01-07 21:25:52 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-08 11:09:38 -0500 |
commit | 7985624037bc8dd7d167408cbecffdad0bb05a4a (patch) | |
tree | a656126191f3889e80b445adf732fd73f55f6130 /libs/canvas/polygon.cc | |
parent | 0fba29a67a35b1aaa39e6e983da92c6ea87e994f (diff) |
Close polygon borders (fix partially drawn hits).
Diffstat (limited to 'libs/canvas/polygon.cc')
-rw-r--r-- | libs/canvas/polygon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/polygon.cc b/libs/canvas/polygon.cc index aa16a60178..fdc1061d74 100644 --- a/libs/canvas/polygon.cc +++ b/libs/canvas/polygon.cc @@ -52,7 +52,7 @@ Polygon::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const if (!_points.empty ()) { /* close path */ Duple p = item_to_window (Duple (_points.front().x, _points.front().y)); - context->move_to (p.x, p.y); + context->line_to (p.x, p.y); } } |