Corrected CalmaRdpt() routine to avoid crashing if the cd_client

record is uninitialized when calling the rescale routine.
This commit is contained in:
Tim Edwards 2020-05-08 16:44:29 -04:00
parent 669ae1dfcc
commit 6737741902
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
8.3.5
8.3.6

View File

@ -98,7 +98,9 @@ calmaInputRescale(n, d)
{
/* Scale the GDS planes in this cell's cd_client record */
Plane **gdsplanes = (Plane **)def->cd_client;
CIFScalePlanes(n, d, gdsplanes);
/* Should not happen, but punt if client record is not set */
if (def->cd_client != (ClientData)CLIENTDEFAULT)
CIFScalePlanes(n, d, gdsplanes);
}
}