Fix line width not being set

This commit is contained in:
Dennis van Gils 2020-07-16 21:13:33 +02:00
parent d70e870a44
commit 603e1b98bc

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)