From fa79dc619747eaaf0e8cb25643cb1aaaa0f1fc91 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 21 Mar 2011 18:12:18 +0100 Subject: Debug render_hkl --- src/render_hkl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/render_hkl.c') diff --git a/src/render_hkl.c b/src/render_hkl.c index aec6d714..7cbc5441 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -104,15 +104,18 @@ static void draw_circles(signed int xh, signed int xk, signed int xl, double u, v, val, res; signed int h, k, l; + signed int he, ke, le; Reflection *refl; + int r; h = xi*xh + yi*yh; k = xi*xk + yi*yk; l = xi*xl + yi*yl; /* Got this reflection? */ - refl = find_refl(list, h, k, l); - if ( refl == NULL ) continue; + r = find_equiv_in_list(list, h, k, l, sym, &he, &ke, &le); + if ( !r ) continue; + refl = find_refl(list, he, ke, le); switch ( wght ) { case WGHT_I : @@ -171,6 +174,7 @@ static void draw_circles(signed int xh, signed int xk, signed int xl, /* Find max resolution */ res = resolution(cell, h, k, l); if ( res > *max_res ) *max_res = res; + } } -- cgit v1.2.3