aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2015-02-20 22:54:29 +0100
committerThomas White <taw@bitwiz.org.uk>2015-02-21 00:12:30 +0100
commitbb53dcc356985826517ae2ce071119cd93de050b (patch)
treeeeb01a44ddd49153ad45a19d853c2f97741f0d9d /libcrystfel
parentb407e8c61b0060716c08a84b876fdee9f9ec52af (diff)
Fix for string matching bug
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 4c7295fe..e8a6a80c 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1921,7 +1921,8 @@ static void process_panel_fields(const struct panel *p, char *line,
if(strstr(bits[1], "fs") != NULL &&
strstr(bits[1], "min_fs") == NULL &&
- strstr(bits[1], "max_fs") == NULL) {
+ strstr(bits[1], "max_fs") == NULL &&
+ strstr(bits[1], "offset") == NULL ) {
sprintf(string_to_write, "%+fx %+fy",
p->fsx, p->fsy);