Browse Source

Fix polygon port drawing

Polygon was not enclosed automatically, when added to path.
pull/170/head
Nikita Zlobin 8 years ago
parent
commit
4f39fd1a41
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/patchcanvas.py

+ 1
- 0
src/patchcanvas.py View File

@@ -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


Loading…
Cancel
Save