Corrected CalmaRdpt() routine to avoid crashing if the cd_client
record is uninitialized when calling the rescale routine.
This commit is contained in:
parent
669ae1dfcc
commit
6737741902
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue