Commit 44f44bb5bd766f0d3971b8b3a1e5a5e83c394df1
1 parent
e3449029
fixed a minor bug involving the progress update for BSQ files without wavelength vectors
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
stim/envi/bsq.h
@@ -92,8 +92,11 @@ public: | @@ -92,8 +92,11 @@ public: | ||
92 | bool band( T * p, double wavelength, bool PROGRESS = false){ | 92 | bool band( T * p, double wavelength, bool PROGRESS = false){ |
93 | if(PROGRESS) progress = 0; | 93 | if(PROGRESS) progress = 0; |
94 | //if there are no wavelengths in the BSQ file | 94 | //if there are no wavelengths in the BSQ file |
95 | - if(w.size() == 0) | ||
96 | - return band_index(p, (unsigned long long)wavelength); | 95 | + if(w.size() == 0){ |
96 | + band_index(p, (unsigned long long)wavelength); | ||
97 | + if(PROGRESS) progress = 100; | ||
98 | + return true; | ||
99 | + } | ||
97 | 100 | ||
98 | unsigned long long XY = X() * Y(); //calculate the number of pixels in a band | 101 | unsigned long long XY = X() * Y(); //calculate the number of pixels in a band |
99 | unsigned long long page = 0; | 102 | unsigned long long page = 0; |