aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-01-26 14:46:09 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:12 +0100
commit81754383c40d69ec65dbd5d013d6fff25d094a3c (patch)
tree6c49fed440946eb49402f1dee667ba4a97adcd5f /src/index.c
parent0358ad008302c93675089f0265a68e6e1997da93 (diff)
Try other cells
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/index.c b/src/index.c
index e3926c8e..eef85d52 100644
--- a/src/index.c
+++ b/src/index.c
@@ -200,15 +200,13 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
break;
}
- /* No cell? Move on to the next method */
- if ( new_cell == NULL ) {
- goto done;
- }
+ /* No cell? Move on to the next candidate */
+ if ( new_cell == NULL ) continue;
/* Sanity check */
if ( !peak_sanity_check(image, new_cell, 0, 0.1) ) {
STATUS("Failed peak sanity check.\n");
- goto done;
+ continue;
}
image->indexed_cell = new_cell;
@@ -220,7 +218,6 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
}
-done:
for ( i=0; i<image->ncells; i++ ) {
cell_free(image->candidate_cells[i]);
}