From e980ed54dc29e025587aba47390727c500aec8f1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 8 Feb 2011 19:10:27 +0100 Subject: Work on making iteration work --- src/peaks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/peaks.c') diff --git a/src/peaks.c b/src/peaks.c index 06c5ee35..4ae0a70b 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -669,6 +669,7 @@ void output_intensities(struct image *image, UnitCell *cell, double bsx, bsy, bsz; double csx, csy, csz; Reflection *refl; + RefListIterator *iter; if ( image->reflections == NULL ) { find_projected_peaks(image, cell, circular_domain, domain_r); @@ -683,9 +684,9 @@ void output_intensities(struct image *image, UnitCell *cell, &bsx, &bsy, &bsz, &csx, &csy, &csz); - for ( refl = first_refl(image->reflections); + for ( refl = first_refl(image->reflections, &iter); refl != NULL; - refl = next_refl(refl) ) { + refl = next_refl(refl, iter) ) { float x, y, intensity; double d; -- cgit v1.2.3