From 44f44bb5bd766f0d3971b8b3a1e5a5e83c394df1 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 20 Apr 2016 22:42:29 -0500 Subject: [PATCH] fixed a minor bug involving the progress update for BSQ files without wavelength vectors --- stim/envi/bsq.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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