From 9000b116c8e7e98824fda428eb24467afaa33306 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 22 Jul 2021 13:23:15 +0200 Subject: cell_explorer: Fix bug in cell enforcement --- src/cell_explorer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cell_explorer.c') diff --git a/src/cell_explorer.c b/src/cell_explorer.c index 1f67ec56..84e26f82 100644 --- a/src/cell_explorer.c +++ b/src/cell_explorer.c @@ -1389,7 +1389,7 @@ static UnitCell *enforce_cell(UnitCell *orig, const char *t) alpha = av; beta = av; gamma = av; } - if ( (t[0] == 'c') && (t[0] == 'r') ) { + if ( (t[0] == 'c') || (t[0] == 'r') ) { double av = (a+b+c)/3.0; a = av; b = av; c = av; } -- cgit v1.2.3