bauerdavid / napari-nD-annotator

BSD 3-Clause "New" or "Revised" License
29 stars 2 forks source link

Object list cannot handle missing image layer #25

Closed bauerdavid closed 2 years ago

bauerdavid commented 2 years ago

Describe the bug If the image layer was not set (which also means that none exists), then creating bounding boxes will raise an exception.

To Reproduce Steps to reproduce the behavior:

  1. Open the Object list widget
  2. Create bounding box layer
  3. Draw a bounding box
  4. See error

Expected behavior It should display a black image instead.

napari info napari: 0.4.15 Platform: Windows-10-10.0.22621-SP0 Python: 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit (AMD64)] Qt: 5.15.2 PyQt5: 5.15.6 NumPy: 1.22.4 SciPy: 1.8.1 Dask: 2022.05.2 VisPy: 0.9.6

OpenGL:

Screens:

Plugins:

bauerdavid commented 2 years ago

fixed by f8ea480