aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-08-11 10:48:02 +0200
committerThomas White <taw@physics.org>2016-08-11 10:48:02 +0200
commit6165c653343746f718227d003e065f6715f6c87f (patch)
tree32093e915a7e8963abf1b0914e502a01641a7045 /libcrystfel
parentaa7ebf4cecdc358f2dc5797bbc58d62f4f8b90f6 (diff)
Use whole of 'value' field when parsing top-level geometry options
This is a long-standing bug, which we got away with up to now because top-level options with more than just a single number or location were rare or possibly never used at all.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index e4e3587a..f0e49d3a 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1311,7 +1311,7 @@ struct detector *get_detector_geometry_2(const char *filename,
if ( n2 < 2 ) {
/* This was a top-level option, not handled above. */
- parse_toplevel(det, beam, bits[0], bits[2], &rg_defl,
+ parse_toplevel(det, beam, bits[0], wholeval, &rg_defl,
&rgc_defl, &n_rg_definitions,
&n_rgc_definitions, hdf5_peak_path);
for ( i=0; i<n1; i++ ) free(bits[i]);