Bugfix in Spectrum Converter
Fixing bug that can happen when spectrum is sampled each 1nm and the size_t goes negative causing an out of bounds.
Fixing bug that can happen when spectrum is sampled each 1nm and the size_t goes negative causing an out of bounds.