aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-02-27 13:50:41 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commit703632eb1a61516ee848eadbc7bb517b9dc1bd86 (patch)
treeb86be32e17168eeddd6bf0979b24f07b8524947e /libcrystfel
parent90015d5037d76336dc7713de9bd5be0f786eda7d (diff)
create_detgeom(): Set n_panels
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 8c4ba3fc..cd461183 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -1727,6 +1727,8 @@ static void create_detgeom(struct image *image, DataTemplate *dtempl)
detgeom->panels = malloc(dtempl->n_panels*sizeof(struct detgeom_panel));
if ( detgeom->panels == NULL ) return;
+ detgeom->n_panels = dtempl->n_panels;
+
for ( i=0; i<dtempl->n_panels; i++ ) {
detgeom->panels[i].name = safe_strdup(dtempl->panels[i].name);