From e6d6e9947844ef57b45da2260590fc7cd508d79f Mon Sep 17 00:00:00 2001 From: David Date: Fri, 18 Nov 2016 15:02:59 -0600 Subject: [PATCH] fixed cropping bug for BIP files --- stim/envi/bip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stim/envi/bip.h b/stim/envi/bip.h index a2d9b17..0d0cfd8 100644 --- a/stim/envi/bip.h +++ b/stim/envi/bip.h @@ -1477,7 +1477,7 @@ public: unsigned long long jump_sample = ( (Z() - b1) + b0 ) * sizeof(T); //distance between sample spectra in adjacent lines - unsigned long long jump_line = (X() - x1) * Z() * sizeof(T); + unsigned long long jump_line = ( X() - x1 + x0 ) * Z() * sizeof(T); //unsigned long long sp = y0 * X() + x0; //start pixel -- libgit2 0.21.4