diff options
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 4adf5932..fb512e62 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -348,7 +348,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys, const unsigned int x = xs / sampling; const unsigned int y = ys / sampling; /* Integer part only */ - p = find_panel(&image->det, x, y); + p = find_panel(image->det, x, y); assert(p != NULL); rx = ((float)xs - (sampling*p->cx)) / (sampling * p->res); @@ -377,7 +377,7 @@ double get_tt(struct image *image, unsigned int xs, unsigned int ys) const unsigned int x = xs; const unsigned int y = ys; /* Integer part only */ - p = find_panel(&image->det, x, y); + p = find_panel(image->det, x, y); rx = ((float)xs - p->cx) / p->res; ry = ((float)ys - p->cy) / p->res; |