Loop for first graphic with xvec
parent
b5f2558cec
commit
a1de097a43
|
@ -869,10 +869,10 @@ class ChartView(ViewBox):
|
||||||
if not graphics:
|
if not graphics:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
graphic = graphics[0]
|
for graphic in graphics:
|
||||||
xvec = graphic.pixelVectors()[0]
|
xvec = graphic.pixelVectors()[0]
|
||||||
if xvec:
|
if xvec:
|
||||||
return xvec.x()
|
return xvec.x()
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue