diff options
author | Thomas White <taw@physics.org> | 2023-11-14 11:51:40 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:34 +0100 |
commit | 9ad42732052c3e2ff41c00bed8b5cec013c8941e (patch) | |
tree | 55481aa9278fe047807b86348a2d83779f20455a /src | |
parent | 3743dd93675fea19da3ea3ce2f7475ba4d9f3070 (diff) |
Add missing image initialisers
Diffstat (limited to 'src')
-rw-r--r-- | src/post-refinement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 79557e18..1bad55ea 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -459,6 +459,7 @@ static void write_angle_grid(Crystal *cr, struct image *image, const RefList *fu priv.scaleflags = scaleflags; priv.pmodel = pmodel; priv.cr_tgt = crystal_copy(cr); + priv.image = image; priv.image_tgt = *image; spectrum = spectrum_new(); priv.image_tgt.spectrum = spectrum; @@ -525,6 +526,7 @@ static void write_radius_grid(Crystal *cr, struct image *image, const RefList *f priv.scaleflags = scaleflags; priv.pmodel = pmodel; priv.cr_tgt = crystal_copy(cr); + priv.image = image; priv.image_tgt = *image; spectrum = spectrum_new(); priv.image_tgt.spectrum = spectrum; @@ -669,6 +671,7 @@ static void do_pr_refine(Crystal *cr, struct image *image, const RefList *full, priv.scaleflags = scaleflags; priv.pmodel = pmodel; priv.cr_tgt = crystal_copy(cr); + priv.image = image; priv.image_tgt = *image; spectrum = spectrum_new(); priv.image_tgt.spectrum = spectrum; |