ccp4 / DUI

CCP4 DIALS User Interface
GNU General Public License v2.0
5 stars 3 forks source link

python/terminal complains after masking #162

Closed luisodls closed 4 years ago

luisodls commented 4 years ago

When using the mask tool, DUI runs the masking just fine, but immediately after DUI runs the masking tool, if the users click anywhere in the image, the console complains with the following message:

Traceback (most recent call last):
  File "/scratch/ccp4-7.1/lib/py2/site-packages/dui/outputs_n_viewers/img_viewer.py", line 294, in mouseReleaseEvent
    if mask_item:
UnboundLocalError: local variable 'mask_item' referenced before assignment
dagewa commented 4 years ago

Thanks, confirmed. The fix is trivial, will commit shortly