Skip to content

Commit

Permalink
convert int to float in (offset, (dash pattern)) line style in OpenGL…
Browse files Browse the repository at this point in the history
… backend
  • Loading branch information
t20100 committed Dec 21, 2023
1 parent 39ad1a4 commit 182859e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/silx/gui/plot/backends/BackendOpenGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ def _lineStyleToDashOffsetPattern(
pattern = ()
if len(pattern) == 2:
pattern = pattern * 2
return offset, pattern
return float(offset), tuple(float(v) for v in pattern)

def addCurve(
self,
Expand Down

0 comments on commit 182859e

Please sign in to comment.