Loop for first graphic with xvec

m4_corrections
Tyler Goodlet 2022-04-06 12:13:05 -04:00
parent 918789d1a3
commit 514bbb1a98
1 changed files with 4 additions and 4 deletions

View File

@ -869,10 +869,10 @@ class ChartView(ViewBox):
if not graphics:
return 0
graphic = graphics[0]
xvec = graphic.pixelVectors()[0]
if xvec:
return xvec.x()
for graphic in graphics:
xvec = graphic.pixelVectors()[0]
if xvec:
return xvec.x()
else:
return 0