aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/reflist-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-07-03 14:27:16 +0200
committerThomas White <taw@physics.org>2012-07-03 14:27:16 +0200
commit3921eb3ecf3c7cc466ebc8048b075378063ba15d (patch)
treee31dad905d2795deaae9da1b794ef8cb05f86f5f /libcrystfel/src/reflist-utils.c
parentbbf7cea5c7aade69c48ca888170e12537accdd29 (diff)
Fix the detection of an actual phase value in a reflection list
Diffstat (limited to 'libcrystfel/src/reflist-utils.c')
-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));
}