From 0248888e3c5f4c10296e00aa16f43f3fed1abf40 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Tue, 5 Jun 2018 03:03:53 +0500 Subject: [PATCH] code style fix --- source/patchcanvas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/patchcanvas.py b/source/patchcanvas.py index 69d5e2d12..55a4430ba 100644 --- a/source/patchcanvas.py +++ b/source/patchcanvas.py @@ -2090,9 +2090,10 @@ class CanvasPort(QGraphicsItem): def paint(self, painter, option, widget): painter.save() painter.setRenderHint(QPainter.Antialiasing, bool(options.antialiasing == ANTIALIASING_FULL)) - lineHinting = canvas.theme.port_audio_jack_pen.widthF() / 2 + # FIXME: would be more correct is to take line width from Pen, loaded to painter, # but this needs some code rearrangement + lineHinting = canvas.theme.port_audio_jack_pen.widthF() / 2 poly_locx = [0, 0, 0, 0, 0]