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",