From ac2386887faa1c88fe515841c92eac0bf20f4d19 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 24 Jun 2010 16:48:45 +0200 Subject: render_hkl: Check cell parameters could be retrieved --- src/render_hkl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/render_hkl.c') diff --git a/src/render_hkl.c b/src/render_hkl.c index e1498b6c..1fd3ec24 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -78,9 +78,12 @@ static void render_za(UnitCell *cell, double *ref, unsigned int *c) max_res = 0.0; /* Work out reciprocal lattice spacings and angles for this cut */ - cell_get_reciprocal(cell, &asx, &asy, &asz, + if ( cell_get_reciprocal(cell, &asx, &asy, &asz, &bsx, &bsy, &bsz, - &csx, &csy, &csz); + &csx, &csy, &csz) ) { + ERROR("Couldn't get reciprocal parameters\n"); + return; + } theta = angle_between(asx, asy, asz, bsx, bsy, bsz); as = modulus(asx, asy, asz) / 1e9; bs = modulus(bsx, bsy, bsz) / 1e9; -- cgit v1.2.3