diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-02-07 14:06:25 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:13 +0100 |
commit | 58addb645ea760b701feb489a7efe4500082a591 (patch) | |
tree | 124bf389d163c50f7a81b34a24bb43576fc3c411 /src/peaks.c | |
parent | 56e68f969f3c48ca4a6b7d2721c50ae86a9e2f72 (diff) |
Finish implementation of binary tree
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c index d1132a3a..06c5ee35 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -538,7 +538,9 @@ int find_projected_peaks(struct image *image, UnitCell *cell, set_detector_pos(refl, dist, x, y); } } else { - add_refl_with_det_pos(reflections, h, k, l, x, y, dist); + Reflection *new; + new = add_refl(reflections, h, k, l); + set_detector_pos(new, dist, x, y); n_reflections++; } |