DeepMicroscopy / SlideRunner

SlideRunner is a tool for massive cell annotations in whole slide images
GNU General Public License v3.0
75 stars 10 forks source link

fix uncaught error #27

Closed d0uwe closed 4 years ago

d0uwe commented 4 years ago

when selecting remove area from existing annotation while the new polygon covers the entire existing annotation, the following uncaught exception occured:

File "/usr/local/lib/python3.7/site-packages/SlideRunner-1.31.0-py3.7.egg/SlideRunner/gui/annotation.py", line 163, in removeFromPolygon diffPolyCoords = diffPolygon.exterior.coords.xy 
 AttributeError: 'list' object has no attribute 'xy'

This PR fixes that.