aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);