diff --git a/stim/envi/bsq.h b/stim/envi/bsq.h index 958517c..bd6b529 100644 --- a/stim/envi/bsq.h +++ b/stim/envi/bsq.h @@ -92,8 +92,11 @@ public: bool band( T * p, double wavelength, bool PROGRESS = false){ if(PROGRESS) progress = 0; //if there are no wavelengths in the BSQ file - if(w.size() == 0) - return band_index(p, (unsigned long long)wavelength); + if(w.size() == 0){ + band_index(p, (unsigned long long)wavelength); + if(PROGRESS) progress = 100; + return true; + } unsigned long long XY = X() * Y(); //calculate the number of pixels in a band unsigned long long page = 0; -- libgit2 0.21.4