diff --git a/VERSION b/VERSION index a8d813b2..49d92867 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.43 +8.3.44 diff --git a/cif/CIFgen.c b/cif/CIFgen.c index 4e268327..1095024a 100644 --- a/cif/CIFgen.c +++ b/cif/CIFgen.c @@ -3444,7 +3444,10 @@ calcX: delta = abs(*sxbot) % CIFCurStyle->cs_gridLimit; if (delta > 0) { - *axtop -= 2 * delta; + if (*sxbot >= 0) + *axtop -= 2 * delta; + else + *axtop += 2 * delta; goto calcX; } } @@ -3471,7 +3474,10 @@ calcY: delta = abs(*sybot) % CIFCurStyle->cs_gridLimit; if (delta > 0) { - *aytop -= 2 * delta; + if (*sybot >= 0) + *aytop -= 2 * delta; + else + *aytop += 2 * delta; goto calcY; } }