From fd49cad0478dc5ac7736c35aa733bbc773d7b5cd Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 25 Jan 2021 15:05:05 -0500 Subject: [PATCH] Corrected the CIF input scaling to include the 2nd set of planes used by GDS reads. --- cif/CIFrdcl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cif/CIFrdcl.c b/cif/CIFrdcl.c index 02b07f65..ed2c6d00 100644 --- a/cif/CIFrdcl.c +++ b/cif/CIFrdcl.c @@ -386,8 +386,10 @@ CIFInputRescale(n, d) } } - CIFScalePlanes(n, d, cifEditCellPlanes); - if (cifEditCellPlanes != cifSubcellPlanes) + CIFScalePlanes(n, d, cifCurReadPlanes); + if (cifCurReadPlanes != cifEditCellPlanes) + CIFScalePlanes(n, d, cifEditCellPlanes); + if (cifEditCellPlanes != cifSubcellPlanes && cifCurReadPlanes != cifSubcellPlanes) CIFScalePlanes(n, d, cifSubcellPlanes); CIFReadWarning("CIF style %s: units rescaled by factor of %d / %d\n",