aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-10-31 11:24:44 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:04 +0100
commit35a89a55ac05c6f1ce7925bdf26d7346dc6d4a95 (patch)
treefaf53115d2498dd7d1597a7e505862acef172fdd /src/index.c
parent9686edbcb2b5aeb4a553779c895b228d2ac56528 (diff)
Improve cell comparison
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.c b/src/index.c
index f285cccb..bb725fcb 100644
--- a/src/index.c
+++ b/src/index.c
@@ -179,12 +179,11 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod indm,
break;
case CELLR_REDUCE :
new_cell = match_cell(image->candidate_cells[i],
- cell, verbose);
+ cell, verbose, 1);
break;
case CELLR_COMPARE :
- if ( cells_similar(image->candidate_cells[i], cell) ) {
- new_cell = image->candidate_cells[i];
- }
+ new_cell = match_cell(image->candidate_cells[i],
+ cell, verbose, 0);
break;
}