Merge pull request #1317 from Dennis-van-Gils/master

Fix line width not being set
This commit is contained in:
Ogi Moore 2020-07-16 14:20:26 -07:00 committed by GitHub
commit 3c6dad376a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,6 +580,7 @@ class PlotCurveItem(GraphicsObject):
if pen.isCosmetic() and width < 1:
width = 1
gl.glPointSize(width)
gl.glLineWidth(width)
gl.glEnable(gl.GL_LINE_SMOOTH)
gl.glEnable(gl.GL_BLEND)
gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA)