aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/reflist-utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c
index 1404b545..2e6715f2 100644
--- a/libcrystfel/src/reflist-utils.c
+++ b/libcrystfel/src/reflist-utils.c
@@ -292,9 +292,7 @@ RefList *read_reflections_from_file(FILE *fh)
set_redundancy(refl, cts);
ph = strtod(phs, &v);
- if ( v != NULL ) set_phase(refl, deg2rad(ph));
-
- /* The 1/d value is actually ignored. */
+ if ( v != phs ) set_phase(refl, deg2rad(ph));
}