PiMaV / BLITZ

*B*ulk *L*oading and *I*nteractive *T*ime series *Z*onal analysis
GNU General Public License v3.0
7 stars 0 forks source link

small bug in bounding_rect #40

Closed PiMaV closed 2 months ago

PiMaV commented 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

irkri commented 2 months ago

This is fixed, we now check if the sequence in question is empty before taking min or max.

PiMaV commented 2 months ago

thus done