Merge pull request #1665 from lidstrom83/bugfix-legend
Don't pass brush to fn.mkPen
This commit is contained in:
commit
75abcb634e
@ -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)]))
|
||||
|
Loading…
Reference in New Issue
Block a user