Avoid null index race-error during startup
parent
999d3efdd7
commit
1aaa382036
|
@ -109,6 +109,7 @@ class LineDot(pg.CurvePoint):
|
||||||
# first = self._plot._arrays['ohlc'][0]['index']
|
# first = self._plot._arrays['ohlc'][0]['index']
|
||||||
# first = x[0]
|
# first = x[0]
|
||||||
# i = index - first
|
# i = index - first
|
||||||
|
if index:
|
||||||
i = index - x[0]
|
i = index - x[0]
|
||||||
if i > 0 and i < len(y):
|
if i > 0 and i < len(y):
|
||||||
newPos = (index, y[i])
|
newPos = (index, y[i])
|
||||||
|
|
Loading…
Reference in New Issue