resolve ordering of issues presented in #1322 (#1456)

This commit is contained in:
Ogi Moore 2020-11-23 12:12:14 -08:00 committed by GitHub
parent 6c7bd87592
commit d2255228ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,6 +416,8 @@ class PlotCurveItem(GraphicsObject):
self.setShadowPen(kargs['shadowPen'])
if 'fillLevel' in kargs and kargs['fillLevel'] is not None:
self.setFillLevel(kargs['fillLevel'])
if 'fillOutline' in kargs:
self.opts['fillOutline'] = kargs['fillOutline']
if 'brush' in kargs and kargs['brush'] is not None:
self.setBrush(kargs['brush'])
if 'antialias' in kargs:
@ -534,6 +536,9 @@ class PlotCurveItem(GraphicsObject):
cp = fn.mkPen(self.opts['pen'])
p.setPen(cp)
if self.opts['fillOutline'] and self.fillPath is not None:
p.drawPath(self.fillPath)
else:
p.drawPath(path)
profiler('drawPath')