diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-07-10 17:42:29 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-07-21 13:51:06 +0200 |
commit | 64709fcb47071b3a6eaf3db30ea1b407e7f80375 (patch) | |
tree | f16792011de979ef95a872accfd2f52bbeeff8f4 /libcrystfel/src | |
parent | 33b9b83516245d5f7d290191f1fd96e3a7551156 (diff) |
Fixes bug in copy_geom. Closes CRYS-49
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/detector.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; i<out->n_panels; i++ ) { struct panel *p; |