From a9203226058dfd8ba35aa2e192ca51e030d3394a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 18 Feb 2019 16:57:08 +0100 Subject: get_hkl --reindex: Check that the user provides only one reindexing operation --- src/get_hkl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/get_hkl.c b/src/get_hkl.c index efd06c94..2a17aab5 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -580,6 +580,10 @@ int main(int argc, char *argv[]) if ( reindex_str != NULL ) { reindex = parse_symmetry_operations(reindex_str); if ( reindex == NULL ) return 1; + if ( num_equivs(reindex, NULL) != 1 ) { + ERROR("Please provide only ONE reindexing operation\n"); + return 1; + } set_symmetry_name(reindex, "Reindex"); } -- cgit v1.2.3