From cb2383f9659a63ce951ee16ec00885840ef3e712 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 4 Oct 2010 18:47:49 +0200 Subject: process_hkl: Fix counting --- src/process_hkl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ) { -- cgit v1.2.3