From 81754383c40d69ec65dbd5d013d6fff25d094a3c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 26 Jan 2011 14:46:09 +0100 Subject: Try other cells --- src/index.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') 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; incells; i++ ) { cell_free(image->candidate_cells[i]); } -- cgit v1.2.3