From 64709fcb47071b3a6eaf3db30ea1b407e7f80375 Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Thu, 10 Jul 2014 17:42:29 +0200 Subject: Fixes bug in copy_geom. Closes CRYS-49 --- libcrystfel/src/detector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index bd0be1b6..868b027f 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1164,6 +1164,9 @@ struct detector *copy_geom(const struct detector *in) out->bad = malloc(out->n_bad * sizeof(struct badregion)); memcpy(out->bad, in->bad, out->n_bad * sizeof(struct badregion)); + out->n_rigid_groups = 0; + out->rigid_groups = NULL; + for ( i=0; in_panels; i++ ) { struct panel *p; -- cgit v1.2.3