From 7985624037bc8dd7d167408cbecffdad0bb05a4a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Jan 2015 21:25:52 -0500 Subject: [PATCH] Close polygon borders (fix partially drawn hits). --- libs/canvas/polygon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); } }