diff options
author | Thomas White <taw@physics.org> | 2010-10-04 18:47:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | cb2383f9659a63ce951ee16ec00885840ef3e712 (patch) | |
tree | dab1a8514e54b894b0f3f0df99cd15f815a20f9e /src | |
parent | 4d578184312386e83289a05f1ef5b85e1e6fec9c (diff) |
process_hkl: Fix counting
Diffstat (limited to 'src')
-rw-r--r-- | src/process_hkl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index 7bc04846..b0661013 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -440,8 +440,8 @@ static void merge_all(FILE *fh, double **pmodel, ReflItemList **pobserved, int r; rval = fgets(line, 1023, fh); - if ( rval == NULL ) continue; /* And 'break' */ - if ( strcmp(line, "\n") == 0 ) { + if ( ((strncmp(line, "Reflections from indexing", 25) == 0) + || (rval == NULL)) && (num_items(items)>0) ) { /* Assume a default I0 if we don't have one by now */ if ( config_scale && !f0_valid ) { |