From 0baa4ee4a66888f907fdbfd45eb6d2aa1ca3dfd2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 16 Sep 2019 16:51:01 +0200 Subject: Fix cell comparison logic --- libcrystfel/src/index.c | 1 + libcrystfel/src/index.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 4c82e868..f6e81109 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -543,6 +543,7 @@ static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target, tolerance, &rm); if ( out != NULL ) { + /* Replace crystal's cell with new one */ cell_free(crystal_get_cell(cr)); crystal_set_cell(cr, out); rtnl_mtx_free(rm); diff --git a/libcrystfel/src/index.h b/libcrystfel/src/index.h index ec7ed61b..eb5cf7e4 100644 --- a/libcrystfel/src/index.h +++ b/libcrystfel/src/index.h @@ -122,7 +122,7 @@ typedef enum { INDEXING_CHECK_PEAKS = 32, /** Check that the unit cell agrees with the target cell */ - INDEXING_CHECK_CELL = 32, + INDEXING_CHECK_CELL = 64, } IndexingFlags; -- cgit v1.2.3