diff options
Diffstat (limited to 'src/powder_plot.c')
-rw-r--r-- | src/powder_plot.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/powder_plot.c b/src/powder_plot.c index 6065da07..d073f2ef 100644 --- a/src/powder_plot.c +++ b/src/powder_plot.c @@ -318,6 +318,9 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym, int h, k, l, redundancy; double q, intensity; unsigned int nref; + SymOpMask *m; + + m = new_symopmask(sym); nref = num_reflections(image->reflections); @@ -330,9 +333,8 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym, if ( use_redundancy ) { redundancy = get_redundancy(refl); } else { - SymOpList *sp = special_position(sym, h, k, l); - redundancy = num_equivs(sp); - free_symoplist(sp); + special_position(sym, m, h, k, l); + redundancy = num_equivs(sym, m); } /* Multiply by 2 to get 1/d (in m^-1) */ @@ -348,6 +350,8 @@ static unsigned int process_hkl(struct image *image, const SymOpList *sym, } + free_symopmask(m); + return n_peaks; } |