From 55846b287d574815ccbf31243782f302c403917d Mon Sep 17 00:00:00 2001 From: taw27 Date: Fri, 24 Aug 2007 17:54:49 +0000 Subject: More reprojection git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@75 bf6ca9ba-c028-0410-8290-897cf20841d1 --- src/reflections.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/reflections.c') diff --git a/src/reflections.c b/src/reflections.c index e16bcff..955eb82 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -76,7 +76,7 @@ void reflection_add(ReflectionContext *reflectionctx, double x, double y, double } -void reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed int k, signed int l, double intensity, ReflectionType type) { +Reflection *reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed int k, signed int l, double intensity, ReflectionType type) { Reflection *new_reflection; @@ -91,6 +91,8 @@ void reflection_add_index(ReflectionContext *reflectionctx, signed int h, signed reflectionctx->last_reflection->next = new_reflection; reflectionctx->last_reflection = new_reflection; + return new_reflection; + } /* x and y in metres (in real space!) */ -- cgit v1.2.3