13
0

Close polygon borders (fix partially drawn hits).

This commit is contained in:
David Robillard 2015-01-07 21:25:52 -05:00
parent 0fba29a67a
commit 7985624037

View File

@ -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);
}
}