diff --git a/stim/envi/bsq.h b/stim/envi/bsq.h index 8297e30..387838d 100644 --- a/stim/envi/bsq.h +++ b/stim/envi/bsq.h @@ -996,7 +996,7 @@ public: matrix[i*Z() + b] = band_image[xy]; //copy it to the appropriate point in the values[] array i++; } - if(PROGRESS) progress = (double)(xy+1) / (double)XY * 100; + if(PROGRESS) progress = (double)(b * XY + xy+1) / (double)(XY * Z()) * 100; } } -- libgit2 0.21.4