aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-30 16:02:38 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commit522bdf294bd506144395bb712c5d6b63b8f61f4a (patch)
treee632abcfd8446681e4ed5cc79f32c289755fabca /src/partialator.c
parent3fbd31a475e9fe5c9c2148afedc851e81749613c (diff)
partialator: Geometry is required before loading image data
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 48c26d0f..ae13f147 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -317,7 +317,7 @@ int main(int argc, char *argv[])
RefList *as;
- images[n_usable_patterns].det = NULL;
+ images[n_usable_patterns].det = det;
if ( read_chunk(fh, &images[n_usable_patterns]) != 0 ) {
/* Should not happen, because we counted the patterns
@@ -336,7 +336,6 @@ int main(int argc, char *argv[])
/* Fill in initial estimates of stuff */
images[n_usable_patterns].div = beam->divergence;
images[n_usable_patterns].bw = beam->bandwidth;
- images[n_usable_patterns].det = det;
images[n_usable_patterns].width = det->max_fs;
images[n_usable_patterns].height = det->max_ss;
images[n_usable_patterns].osf = 1.0;