diff options
author | Thomas White <taw@physics.org> | 2010-02-04 19:04:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-04 19:04:33 +0100 |
commit | 187ba88a5fc87f65f19fcaa80a002d9ca9e43bbb (patch) | |
tree | c2d60eefaad5665a194b18f0291ef4f6835fa418 /src/index.c | |
parent | a162a01f988a86f38d10a1b507d524637670566e (diff) |
Don't attempt to match the cell if it wasn't found
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 1d737e7e..4bc74b82 100644 --- a/src/index.c +++ b/src/index.c @@ -143,6 +143,11 @@ void index_pattern(struct image *image, IndexingMethod indm) if ( indm == INDEXING_NONE ) return; if ( indm == INDEXING_DIRAX ) run_dirax(image); + if ( image->indexed_cell == NULL ) { + STATUS("No cell found.\n"); + return; + } + new_cell = match_cell(image->indexed_cell, image->molecule->cell); free(image->indexed_cell); |