Closed PiMaV closed 2 months ago
Got his while playing with an image:
Traceback (most recent call last): File "C:\PYTHON\BLITZ\blitz\layout\widgets.py", line 195, in update_bounding_rect left = min([p[1].x() for p in pos]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: min() arg is an empty sequence
This is fixed, we now check if the sequence in question is empty before taking min or max.
thus done
Got his while playing with an image:
Traceback (most recent call last): File "C:\PYTHON\BLITZ\blitz\layout\widgets.py", line 195, in update_bounding_rect left = min([p[1].x() for p in pos]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: min() arg is an empty sequence