From 4f39fd1a4153f38a331fa3db471e6e7c177766f6 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Tue, 15 Aug 2017 19:58:30 +0500 Subject: [PATCH] Fix polygon port drawing Polygon was not enclosed automatically, when added to path. --- src/patchcanvas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/patchcanvas.py b/src/patchcanvas.py index 1c392f1..267b54a 100644 --- a/src/patchcanvas.py +++ b/src/patchcanvas.py @@ -1932,6 +1932,7 @@ class CanvasPort(QGraphicsItem): polygon += QPointF(poly_locx[2], float(canvas.theme.port_height)/2) polygon += QPointF(poly_locx[3], canvas.theme.port_height - line_width / 2) polygon += QPointF(poly_locx[4], canvas.theme.port_height - line_width / 2) + polygon += QPointF(poly_locx[0], line_width / 2) path.addPolygon(polygon) else: rounding = canvas.theme.port_rounding