diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-08-20 12:00:19 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:36 +0100 |
commit | de17e3afdec93e2347f43f0eea7312509af8ef9c (patch) | |
tree | 6f1e02cbb8973820b03ccf904b165011aca6562e /src/indexamajig.c | |
parent | 7fa0bc44242e5faaed29ac6fe554831180b7fc92 (diff) |
Check that the unit cell makes sense
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index fb8272ea..e69025e0 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -325,9 +325,11 @@ static void process_image(void *pp, int cookie) image.reflections = find_intersections(&image, image.indexed_cell); - integrate_reflections(&image, config_polar, - pargs->static_args.config_closer, - pargs->static_args.config_bgsub); + if ( image.reflections != NULL ) { + integrate_reflections(&image, config_polar, + pargs->static_args.config_closer, + pargs->static_args.config_bgsub); + } } else { |