From 2f942f0a3096242ce5623cf5aae8d33253766bad Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 17 Nov 2010 13:52:15 +0100 Subject: process_hkl: Finish progress bar properly when using --stop-after --- src/process_hkl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/process_hkl.c b/src/process_hkl.c index 2533102a..b1fcad51 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -472,7 +472,11 @@ static void merge_all(FILE *fh, double **pmodel, ReflItemList **pobserved, hist_i, devs, means, outfh); n_patterns++; - if ( n_patterns == config_stopafter ) break; + if ( n_patterns == config_stopafter ) { + progress_bar(n_total_patterns, n_total_patterns, + "Merging"); + break; + } progress_bar(n_patterns, n_total_patterns, "Merging"); /* Reset for the next pattern */ -- cgit v1.2.3