dropping a raster band onto the grey area (before any MapView is created) gives an error

Issue #408 closed
Andreas Janz created an issue

An error has occurred while executing Python code:

IndexError: list index out of range

Traceback (most recent call last):
  File "C:\source\QGISPlugIns\enmap-box\enmapbox\gui\dockmanager.py", line 1269, in 
    dockArea.sigDropEvent.connect(lambda event: self.onDockAreaDragDropEvent(dockArea, event))
  File "C:\source\QGISPlugIns\enmap-box\enmapbox\gui\dockmanager.py", line 1304, in onDockAreaDragDropEvent
    speclibs = extractSpectralLibraries(mimeData)
  File "C:\source\QGISPlugIns\enmap-box\enmapbox\gui\mimedata.py", line 254, in extractSpectralLibraries
    slib = SpectralLibrary.readFromMimeData(mimeData)
  File "C:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\core.py", line 1062, in readFromMimeData
    sl = SpectralLibrary.readFrom(mimeData.urls()[0])
IndexError: list index out of range

Python version: 3.6.10 (default, Mar  5 2020, 10:17:47) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.12.1-București București, exported

Comments (1)

  1. Log in to comment