Merge pull request #1665 from lidstrom83/bugfix-legend

Don't pass brush to fn.mkPen
This commit is contained in:
Ogi Moore 2021-03-26 11:54:29 -07:00 committed by GitHub
commit 75abcb634e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ class ItemSample(GraphicsWidget):
if (opts.get('fillLevel', None) is not None and
opts.get('fillBrush', None) is not None):
p.setBrush(fn.mkBrush(opts['fillBrush']))
p.setPen(fn.mkPen(opts['fillBrush']))
p.setPen(fn.mkPen(opts['pen']))
p.drawPolygon(QtGui.QPolygonF(
[QtCore.QPointF(2, 18), QtCore.QPointF(18, 2),
QtCore.QPointF(18, 18)]))