Close polygon borders (fix partially drawn hits).
authorDavid Robillard <d@drobilla.net>
Thu, 8 Jan 2015 02:25:52 +0000 (21:25 -0500)
committerDavid Robillard <d@drobilla.net>
Thu, 8 Jan 2015 16:09:38 +0000 (11:09 -0500)
libs/canvas/polygon.cc

index aa16a6017844c2cc6f3ba816eabac5b8ecd5f08d..fdc1061d743dd3c201367f50a740f720ff468251 100644 (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);
                }
 
        }